Index
Also: row labels
Python tools
The row labels of a DataFrame or Series. Operations line rows up by index, not by position.
ExampleAfter filtering, the index keeps the original row numbers, which is why loc and iloc can give different rows.
Also: row labels
The row labels of a DataFrame or Series. Operations line rows up by index, not by position.
ExampleAfter filtering, the index keeps the original row numbers, which is why loc and iloc can give different rows.