Until now the pandas function df.to_stata()
worked just fine with my datasets.
I am trying to export a dataframe that includes 29,778 rows and 37 to a Stata file using the following code:
df.to_stata("Stata_File.dta", write_index=False, version=118)
However, I receive the following error message:
AttributeError: 'DataFrame' object has no attribute 'dtype'
I would really appreciate any help how to fix this.