BUG: DataFrame.to_stata() uses wrong struct formats and crashes in int64 #6327
Labels
Bug
Dtype Conversions
Unexpected or buggy dtype conversions
IO Data
IO issues that don't fit into a more specific label
Milestone
The relevant code is
and
which maps
h
to int32 andl
to int64.http://docs.python.org/2/library/struct.html#format-characters
shows that
h
is 2 bytes andl
is 4, and so trying to runproduces an error.
The obvious fix is to use
but this will probably produce errors on 32-bit platforms.
The text was updated successfully, but these errors were encountered: