to_stata results in unnecessarily long strings · Issue #7858 · pandas-dev/pandas (original) (raw)
I'm writing some simple data, including a string of len()=5 using to_stata.
In Stata, I then have trouble with it due to its length. codebook shows that my variable as been encoded as a string of length 244:
of type "string (str244), but longest is str5"
If tthe longest string is length 5, so should be the output variable type in Stata.