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
If you assign the dataframe's index to as a column as well, without resetting the index, any subsequent assignments on the column seem to affect both the column as well as the index.
The behaviour is there for Index, Int64Index, and Float64Index but not DatetimeIndex.
The text was updated successfully, but these errors were encountered:
jreback
added
Bug
Indexing
Related to indexing on series/frames, not to indexes themselves
Compat
pandas objects compatability with Numpy or Python functions
labels
Jun 28, 2016
If you assign the dataframe's index to as a column as well, without resetting the index, any subsequent assignments on the column seem to affect both the column as well as the index.
The behaviour is there for Index, Int64Index, and Float64Index but not DatetimeIndex.
Code Sample, a copy-pastable example if possible.
Expected Output
output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: