I am confused as to where the index labels are coming from. With the Fortune 500 dataset in the Exploring Data with pandas: Intermediate course, what were the index labels (after selecting the non-null values) when we added the rank change column.
Hi @adcexperiment1234, please provide the screen link.
When you check the variable inspector you could find the index labels for
previously_ranked DataFrame, and
The index labels are unique for each row and it remains unchanged whether we create a new DataFrame or add/remove/reorder the rows.
To avoid confusion, you can check the rear end of
previously_ranked, and compare it with
f500 to observe the changes.
Hope its clear now.