Skip to content

Unable to Load Dataset via get_df() After Successful Upload #749

@MiPat03

Description

@MiPat03

Describe the bug
Even after uploading a .csv file and importing it as a dataset in Preswald, calling get_df("dataset_name") returns None. This results in a NoneType object has no attribute 'empty' error and no data is displayed.

To Reproduce
Steps to reproduce the behavior:

  1. Go to a Preswald project.
  2. Upload a .csv file (e.g., personality_dataset.csv).
  3. Click on the 3-dot menu → select Import as Dataset.
  4. Name it (e.g., sample_dataset).
  5. Run the script:
from preswald import connect, get_df
connect()
df = get_df("sample_dataset")

Expected behavior
get_df("personality_dataset") should return a valid DataFrame when the dataset is properly uploaded and imported.

Environment:

  • OS: Windows 10
  • Browser: Chrome

Additional context
Please investigate why get_df() silently fails when the dataset is clearly imported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions