What do I need to know about the pandas index? (Part 1)

Опубликовано: 06 Октябрь 2024
на канале: Data School
134,401
2.9k

The DataFrame index is core to the functionality of pandas, yet it's confusing to many users. In this video, I'll explain what the index is used for and why you might want to store your data in the index. I'll also demonstrate how to set and reset the index, and show how that affects the DataFrame's shape and contents.

SUBSCRIBE to learn data science with Python:
https://www.youtube.com/dataschool?su...

JOIN the "Data School Insiders" community and receive exclusive rewards:
  / dataschool  

== RESOURCES ==
GitHub repository for the series: https://github.com/justmarkham/pandas...
"loc" documentation: http://pandas.pydata.org/pandas-docs/...
"set_index" documentation: http://pandas.pydata.org/pandas-docs/...
"reset_index" documentation: http://pandas.pydata.org/pandas-docs/...
Indexing and selecting data: http://pandas.pydata.org/pandas-docs/...

== LET'S CONNECT! ==
Newsletter: https://www.dataschool.io/subscribe/
Twitter:   / justmarkham  
Facebook:   / datascienceschool  
LinkedIn:   / justmarkham