spatial_access icon indicating copy to clipboard operation
spatial_access copied to clipboard

to_csv doesn't work if folder doesn't exist

Open angela-li opened this issue 5 years ago • 0 comments

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".

angela-li avatar Feb 14 '20 17:02 angela-li