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.
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.