API: behaviour of label indexing with floats on integer index · Issue #12333 · pandas-dev/pandas (original) (raw)
In [11]: s = pd.Series([1,2,3])
In [12]: s.loc[0.0] = 10
In [13]: s.loc[0.0]
TypeError: cannot do label indexing on <class 'pandas.indexes.range.RangeIndex'>
with these indexers [0.0] of <type 'float'>