BUG: Fixed incorrect type in integer conversion in to_stata by bashtage · Pull Request #6335 · pandas-dev/pandas (original) (raw)

I can have a look if needed. I didn't write the writer, so I'm less familiar with it. I can also point you to (or provide you with) the technical documentation if needed. It comes with stata since v. 11.x or so.

You are correct though that Stata doesn't have an int64. Only (type, min, max, bytes)

byte, -127, 100, 1
int, -32,767, 32,740, 2
long, -2,147,483,647, 2,147,483,620, 4
float, -1.70141173319 x 10^38, 1.70141173319 x 10^38, 4
double, -8.9884656742 x 10^307, 8.9884656743 x 10^307, 8