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

Fix pandas DtypeWarning in download_demo #1980

Closed
amontanez24 opened this issue May 2, 2024 · 0 comments · Fixed by #2006
Closed

Fix pandas DtypeWarning in download_demo #1980

amontanez24 opened this issue May 2, 2024 · 0 comments · Fixed by #2006
Assignees
Labels
bug Something isn't working
Milestone

Comments

@amontanez24
Copy link
Contributor

Environment Details

Please indicate the following details about the environment in which you found the bug:

  • SDV version: Current
  • Python version: Any
  • Operating System: Any

Error Description

Sometimes when calling download_demo, the following warning pops up:

demo.py:99: DtypeWarning: Columns (7) have mixed types. Specify dtype option on import or set low_memory=False.
  data[table_name] = pd.read_csv(io.StringIO(file_.decode()))

This is annoying but also means the dtypes might be incorrectly inferred by pandas.

Steps to reproduce

datasets = get_available_demos('multi_table')
for dataset_name in datasets['dataset_name']:
    metadata, tables = download_demo(modality, dataset_name)
@amontanez24 amontanez24 added the bug Something isn't working label May 2, 2024
@amontanez24 amontanez24 added this to the 1.13.0 milestone May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants