We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After executing df.to_stata() with write_index=False, all NaNs in df were automatically replaced by 8.988466e+307. Please see the following code:
df.to_stata()
write_index=False
NaNs
df
8.988466e+307
df = pd.DataFrame(np.random.randn(5,4), columns=list('abcd')) df.ix[2, 'a':'c'] = np.nan print df df.to_stata('test.dta', write_index=False) print df I am using pandas v0.16.0. Thanks.
df = pd.DataFrame(np.random.randn(5,4), columns=list('abcd'))
df.ix[2, 'a':'c'] = np.nan
print df
df.to_stata('test.dta', write_index=False)
pandas v0.16.0
The text was updated successfully, but these errors were encountered:
cc @bashtage cc @kshedden
Sorry, something went wrong.
Closes pandas-dev#9795 (Stata writer changes input frame)
5e8d9eb
52a30d9
Successfully merging a pull request may close this issue.
After executing
df.to_stata()
withwrite_index=False
, allNaNs
indf
were automatically replaced by8.988466e+307
. Please see the following code:df = pd.DataFrame(np.random.randn(5,4), columns=list('abcd'))
df.ix[2, 'a':'c'] = np.nan
print df
df.to_stata('test.dta', write_index=False)
print df
I am using
pandas v0.16.0
. Thanks.The text was updated successfully, but these errors were encountered: