You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BUG/API: Fix stata io to deal with wrong data types and missing values (GH6335)
BUG: Changes types used in packing structs
Corrected incorrect data type conversion between pandas and Stata
Remove unnecessary, potentially precision degrading cast to Series when writing data
Added function to cast columns from NumPy data types to Stata data types
Corrected tests for correct Stata datatypes
Fixed formatting in comparison after casting
Added docstring for new function and warning class
BUG: Fixes and tests for extreme values in all data types
The extreme values of float and double (Stata, pandas eqiv: float 32 and
float64) were not correct. This resulted in incorrect truncation. The
handling of missing values have been improved and code to convert missing
values in any format has been added. The improvement differentiated between
valid ranges for data and missing values.
Additional issues were found when handling missing Dates, where missing Dates
(NaT) were converted to non-missing dates when written.
A test has been added for extreme numeric values as well as missing values.
Fixed legacy date issue with format 114 files
Added test for 114 files
Added format 114 (Stata 9/10/11) data file
Add test for Stata data with file format 114
Added additional data files for testing alternative Stata file formats
Added expected result to test
Renamed Stata data files to include file format
Types used for integer conversion where always half the size they should be.
Produced a bug when exporting data tables with long integer data (np.int64).
Added test for integer conversion bug
Added test for incorrect integer conversion from int16, int32 and int64
Added additional data files for testing alternative Stata file formats
Added expected result to test
Renamed Stata data files to include file format
Disabled the big endian skips
,,0,,,2014-12-31,"This string has 244 characters, so that ir is the maximum length permitted by Stata. This string has 244 characters, so that ir is the maximum length permitted by Stata. This string has 244 characters, so that ir is the maximum length permitted","2"
,,0,,,31dec2014,"This string has 244 characters, so that ir is the maximum length permitted by Stata. This string has 244 characters, so that ir is the maximum length permitted by Stata. This string has 244 characters, so that ir is the maximum length permitted","2"
100,32740,-2147483647,-1.7010000002777e+38,-2.000000000000e+307,1970-01-01,"This string has 244 characters, so that ir is the maximum length permitted by Stata. This string has 244 characters, so that ir is the maximum length permitted by Stata. This string has 244 characters, so that ir is the maximum length permitted","d"
0 commit comments