Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in create dataset if column names are integer #819

Closed
amueller opened this issue Oct 14, 2019 · 1 comment
Closed

bug in create dataset if column names are integer #819

amueller opened this issue Oct 14, 2019 · 1 comment

Comments

@amueller
Copy link
Contributor

amueller commented Oct 14, 2019

import openml
import pandas as pd

pd.DataFrame({0: [1, 2, 3], 1: [4, 5, 6], 'target': [0, 1, 1]})

openml.datasets.create_dataset(name='noname',
                               creator='totallyme',
                               description='description',
                               attributes='auto',
                               data=data,
                               citation=citation,
                               contributor='Andreas Mueller',
                               collection_date=None,
                               language='English',
                               licence=None,
                               ignore_attribute=None,
                               default_target_attribute='target')
BadObject: Invalid attribute declaration "(0, 'REAL')"
@PGijsbers
Copy link
Collaborator

Fixed with #851.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants