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/9269 below:

adding new row to frame breaks types · Issue #9269 · pandas-dev/pandas · GitHub

xref #8596

>>> df
   a
0  1
>>> df.dtypes
a    int64
dtype: object
>>> df.loc[1, 'a'] = 2
>>> df
   a
0  1
1  2
>>> df.dtypes
a    float64
dtype: object

in an intermediate step nan is inserted, and the data are casted to floats


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