Last active
January 14, 2022 07:51
-
-
Save ma7dev/353a6f4ed1a54ee3cfd25627a6ea4a5a to your computer and use it in GitHub Desktop.
Refactored code from Effective Pandas by Matt Harrison talk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code was inspired by Matt Harrison's presentation, Effective Pandas. In the presentation, Matt shows the following:
Casting
[1], which is a method to turn a data type of an object into another data type. From Matt's experiment, we saved65.17% (10.97MB)
from the original data. This could be improved even further by casting other columns.Pandas
operations in a cleaner and efficient way usingDot NotionChaining..apply
method with other methods to broadcast operations.