-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
df.to_stata doesn't handle boolean columns #7097
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
Comments
its straightforward to do this enhancement, would welcome a pull-request. |
you can always |
Ah - many thanks for the workaround. Just spotted that datetime64[ns] is also not currently understood. |
datetimens64[ns] works just fine in master/0.14 and should in 0.13.1. |
EDIT: Perhaps dates without a conversion specified could throw a specific error requesting the convert_dates mapping be set? |
I just got this same error (0.14.0) for a uint16 dtype. Not sure if it's better to make an independent issue thread or post here. I'm new at this, apologies. |
maybe post separate issues for the last 2 (error reporting for using |
Added support for uint (uint8, uint16 and uint32, but not uint64) and bool datatypes in to_stata. Added an explanation of supported data types in io.rst. closes pandas-dev#7097 and closes pandas-dev#7365
I'd expected this to generate a row of 1's and 0's in the dta file...
But it generates the following error:
sbox/lib/python2.7/site-packages/pandas/io/stata.pyc in _dtype_to_stata_type(dtype)
884 else: # pragma : no cover
885 raise ValueError("Data type %s not currently understood. "
--> 886 "Please report an error to the developers." % dtype)
887
888
ValueError: Data type bool not currently understood. Please report an error to the developers.
The text was updated successfully, but these errors were encountered: