If you want to attach a custom functionality to a Pandas DataFrame (or series) object, use "pandas-flavor".
Its decorators allow you to add methods directly to the Pandas' object.
This is especially useful if you are building an open-source project involving Pandas. After installing your library, others can access your library's methods using the dataframe object.
P.S. This is how we see ππ.π©π«π¨π π«ππ¬π¬_ππ©π©π₯π²() from ππͺππ¦, ππ.π©ππ«ππ₯π₯ππ₯_ππ©π©π₯π²() from πππ§πππ«ππ₯π₯ππ₯, and many more.
Read more: Documentation.
Share this post on LinkedIn: Post Link.
I like to explore, experiment and write about data science concepts and tools. You can read my articles on Medium. Also, you can connect with me on LinkedIn.
Would love to plug in the author into our community for open source AI tools that Data Scientists love.
Great post, our community at aistudio.ml would really appreciate it.