Skip to content

to_csv doesn't work if folder doesn't exist #91

Description

@angela-li

In the demo, the to_csv() function in cell 16 will return an error because the function does not create the "models" folder if it does not already exist. (it's a pandas issue: pandas-dev/pandas#24306)

Perhaps convert the data type from a pandas dataframe to a matrix & write to csv? Or check if folder exists, if not create it. Or in the demo notebook, include a note that says "Please create a models directory if you don't have one".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions