GeoDaCenter / GeoDaCenter/spatial_access

to_csv doesn't work if folder doesn't exist

Open
#91 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
40
Forks
11
PR merge metrics
No merged PRs in 30d

Description

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: https://github.com/pandas-dev/pandas/issues/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".

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.