Roche / pyreadstat

Python package to read sas, spss and stata files into pandas data frames. It is a wrapper for the C library readstat.
Other
315 stars 58 forks source link

pyreadstat.write_sav(df, "tmp/data.sav") should raise an error if the directory tmp does not exist. #269

Open h2appy opened 2 weeks ago

h2appy commented 2 weeks ago

pyreadstat.write_sav(df, "tmp/data.sav") should raise an error if the directory tmp does not exist. However, in reality, pyreadstat.write_sav neither saves the file nor provides any exception information.

Please check. Thanks a lot!

Setup Information: How did you install pyreadstat? pip Platform: macOS M1 Python Version: 3.10.11 Python Distribution: plain python Using Virtualenv or condaenv? python -m venv .venv

ofajardo commented 1 week ago

good catch! I raise an error in case the destination folder does not exist.