-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: Add support for nullable integer columns to StataWriter #40855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Enhancement
IO Stata
read_stata, to_stata
NA - MaskedArrays
Related to pd.NA and nullable extension arrays
Milestone
Comments
I've relabeled this as an enhancement. Stata supports nullable columns with any underlying dtype. Fairly straightforward enhancement request, and reasonable. |
4 tasks
bashtage
added a commit
to bashtage/pandas
that referenced
this issue
Jul 16, 2021
Add code that allows nullable arrays to be written closes pandas-dev#40855
bashtage
added a commit
to bashtage/pandas
that referenced
this issue
Jul 16, 2021
Add code that allows nullable arrays to be written closes pandas-dev#40855
bashtage
added a commit
to bashtage/pandas
that referenced
this issue
Jul 16, 2021
Add code that allows nullable arrays to be written closes pandas-dev#40855
bashtage
added a commit
to bashtage/pandas
that referenced
this issue
Jul 19, 2021
Add code that allows nullable arrays to be written closes pandas-dev#40855
bashtage
added a commit
to bashtage/pandas
that referenced
this issue
Jul 19, 2021
Add code that allows nullable arrays to be written closes pandas-dev#40855
bashtage
added a commit
to bashtage/pandas
that referenced
this issue
Jul 19, 2021
Add code that allows nullable arrays to be written closes pandas-dev#40855
bashtage
added a commit
to bashtage/pandas
that referenced
this issue
Jul 19, 2021
Add code that allows nullable arrays to be written closes pandas-dev#40855
bashtage
added a commit
to bashtage/pandas
that referenced
this issue
Jul 21, 2021
Add code that allows nullable arrays to be written closes pandas-dev#40855
bashtage
added a commit
to bashtage/pandas
that referenced
this issue
Jul 29, 2021
Add code that allows nullable arrays to be written closes pandas-dev#40855
bashtage
added a commit
to bashtage/pandas
that referenced
this issue
Aug 30, 2021
Add code that allows nullable arrays to be written closes pandas-dev#40855
bashtage
added a commit
to bashtage/pandas
that referenced
this issue
Sep 1, 2021
Add code that allows nullable arrays to be written closes pandas-dev#40855
bashtage
added a commit
to bashtage/pandas
that referenced
this issue
Sep 10, 2021
Add code that allows nullable arrays to be written closes pandas-dev#40855
bashtage
added a commit
to bashtage/pandas
that referenced
this issue
Sep 13, 2021
Add code that allows nullable arrays to be written closes pandas-dev#40855
bashtage
added a commit
to bashtage/pandas
that referenced
this issue
Sep 14, 2021
Add code that allows nullable arrays to be written closes pandas-dev#40855
bashtage
added a commit
to bashtage/pandas
that referenced
this issue
Sep 14, 2021
Add code that allows nullable arrays to be written closes pandas-dev#40855
bashtage
added a commit
to bashtage/pandas
that referenced
this issue
Sep 14, 2021
Add code that allows nullable arrays to be written closes pandas-dev#40855
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Enhancement
IO Stata
read_stata, to_stata
NA - MaskedArrays
Related to pd.NA and nullable extension arrays
When attempting to export a dataframe to a Stata data file, I hit the following error due to my dataframe including variables of the Int64 dtype.
Error message:
My expectation is columns of dtype Int64 (i.e., a nullible INT) would end up as byte, int or float in the dta file depending on values therein.
Output of
pd.show_versions()
INSTALLED VERSIONS
commit : 67a3d42
python : 3.8.6.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.14393
machine : AMD64
processor : Intel64 Family 6 Model 61 Stepping 2, GenuineIntel
byteorder : little
LC_ALL : None
LANG : en
LOCALE : English_United States.1252
pandas : 1.1.4
numpy : 1.19.4
pytz : 2020.4
dateutil : 2.8.1
pip : 20.2.4
setuptools : 50.3.1.post20201107
Cython : None
pytest : None
hypothesis : None
sphinx : 3.4.3
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.3
numexpr : None
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.3
sqlalchemy : 1.3.20
tables : None
tabulate : None
xarray : None
xlrd : 2.0.1
xlwt : None
numba : None
The text was updated successfully, but these errors were encountered: