How do I make my pandas DataFrame smaller and faster?

Описание к видео How do I make my pandas DataFrame smaller and faster?

Are you working with a large dataset in pandas, and wondering if you can reduce its memory footprint or improve its efficiency? In this video, I'll show you how to do exactly that in one line of code using the "category" data type, introduced in pandas 0.15. I'll explain how it works, and how to know when you shouldn't use it.

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...
"info" documentation: http://pandas.pydata.org/pandas-docs/...
"memory_usage" documentation: http://pandas.pydata.org/pandas-docs/...
"astype" documentation: http://pandas.pydata.org/pandas-docs/...
Overview of categorical data in pandas: http://pandas.pydata.org/pandas-docs/...
API reference for categorical methods: http://pandas.pydata.org/pandas-docs/...

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

Комментарии

Информация по комментариям в разработке