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.