You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is by definition positional indexing and is not allowed with enlargement. You are seeing fallback on .ix. A frame w/o an index at construction time has the default index (which is integer).
In [6]: df = pd.DataFrame(columns = ['a', 'b'],index=[2,3])
In [7]: df.ix[10] =[1, 1]
In [8]: df
Out[8]:
a b
2 NaN NaN
3 NaN NaN
10 1 1
Similar as #5226
Enlargment doesn't work for .ix on empty dataframe.
.loc works fine.
Affected version 0.15.2
Using .loc first:
everything is ok.
The text was updated successfully, but these errors were encountered: