A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/9795 below:

Unexpected in-place changes when saving a DataFrame to Stata with write_index=False · Issue #9795 · pandas-dev/pandas · GitHub

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 = 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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4