Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Change the Index of a pandas DataFrame

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Assign Index

Loading...
Loading...

set_index

Loading...
Loading...
Index(['year', 'sale'], dtype='object')
2012
2012
2012
2012
Loading...
26250.0