Matt Harrison(@__mharrison__) 's Twitter Profileg
Matt Harrison

@__mharrison__

Python 🐍 + Data Science 🚀 trainer @__metasnake__

🦜 Speaker
✍ Author
👨‍🏫 Instructor (@Stanford)
📣 DM for Sponsorship

ID:103961836

linkhttp://store.metasnake.com/ calendar_today11-01-2010 20:33:28

26,7K Tweets

157,8K Followers

890 Following

Matt Harrison(@__mharrison__) 's Twitter Profile Photo

A Pandas series has over 400 attributes! You can work directly on the column to perform a wide variety of operations.

In Polars, while there is a series object, we generally work with column expressions. These have over 250 attributes.

A Pandas series has over 400 attributes! You can work directly on the column to perform a wide variety of operations. In Polars, while there is a series object, we generally work with column expressions. These have over 250 attributes.
account_circle
Matt Harrison(@__mharrison__) 's Twitter Profile Photo

NumPy and Pandas use 'boolean arrays' for filtering.

Polars uses the .filter method.

Both mechanisms work. An advantage of the Polars approach (that the Pandas .query method replicates) is that it works on the current state of the dataframe in a chain of operations.

NumPy and Pandas use 'boolean arrays' for filtering. Polars uses the .filter method. Both mechanisms work. An advantage of the Polars approach (that the Pandas .query method replicates) is that it works on the current state of the dataframe in a chain of operations.
account_circle
Matt Harrison(@__mharrison__) 's Twitter Profile Photo

One very convenient feature of Pandas is the ability to read CSV files inside of a ZIP file.

With Polars we need to jump through some hoops.

One very convenient feature of Pandas is the ability to read CSV files inside of a ZIP file. With Polars we need to jump through some hoops.
account_circle
Matt Harrison(@__mharrison__) 's Twitter Profile Photo

Free 'universities' over time:

📚Libraries
🎥YouTube
🐦Twitter
💪LinkedIn

Have you gotten a degree from any of them?

Stop scrolling and start practicing.

account_circle
Matt Harrison(@__mharrison__) 's Twitter Profile Photo

Both Pandas and Polars support 'categorical data'.

Leverage this to reduce memory usage and speed up the computation.

Both Pandas and Polars support 'categorical data'. Leverage this to reduce memory usage and speed up the computation.
account_circle
Matt Harrison(@__mharrison__) 's Twitter Profile Photo

One gripe I have with Pandas is automatic conversion of the index to categories for bar plots.

Here's my code to get around this.

linkedin.com/learning/getti…

One gripe I have with Pandas is automatic conversion of the index to categories for bar plots. Here's my code to get around this. linkedin.com/learning/getti…
account_circle