pyreadstat
pyreadstat copied to clipboard
Python package to read sas, spss and stata files into pandas data frames. It is a wrapper for the C library readstat.
Describe the issue According to the [documentation for xpt metadata](https://ofajardo.github.io/pyreadstat_documentation/_build/html/index.html#metadata-object-description), `number_rows` cannot be determined unless the entire dataset is read. I understand that `number_rows` cannot be extracted from the metadata...
Describe the issue Is it possible to have a Buffer from the file instead of writing it directly? I have a Flask endpoint running and am facing some problems due...
Hi, not sure how to tell if this is an issue in the c library or pyreadstat. Apologies if it is the former. As the title says, the "Values" column...
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...
write_dta:A provided string value was longer than the available storage size of the specified column
arg1 = 'E:\\test\\single\\dta\\PRI_Basic.json' arg3 = 'E:\\test\\single\\dta\\PRI_Basic.dta' df = pd.read_json(arg1, dtype=dtype_dict, lines=True) pyreadstat.write_dta(df, arg3) The following error occurred: yreadstat._readstat_parser.ReadstatError: A provided string value was longer than the available storage size of...
# Describe the issue I'd like to set up properly data format for strings. The problem is with format 'A500' (where number is bigger than 255) However format is properly...
I'm working with a large dataset that has about 120,000 columns. When it's saved to pyreadstat it's messing up some of the variable names in the final SPSS. There's no...