Adhere your Pandas data analytics class to the single responsibility and open close principle of SOLID

Do you impeccably organize your Panda’s methods in a class like this?
Summary
The article advocates for structuring Pandas data analytics classes in accordance with SOLID principles, specifically emphasizing the single responsibility and open-close principles to avoid refactoring and maintainability issues.
Abstract
The article titled "Adhere your Pandas data analytics class to the single responsibility and open close principle of SOLID" discusses the importance of organizing Pandas methods within a class by adhering to SOLID design principles. It argues that having a class with many methods responsible for different tasks violates the single responsibility principle and makes the class prone to frequent refactoring, which in turn violates the open-close principle. The author suggests that instead of having a monolithic class, one should inject data and methods into the class, allowing for greater flexibility and maintainability. This approach enables the class to be easily extendable with new methods without the need to modify the existing codebase. The article concludes by inviting readers to consider the benefits of this design philosophy and mentions a cost-effective AI service, ZAI.chat, as a recommendation.
Opinions

Do you impeccably organize your Panda’s methods in a class like this?
You are violating the SOLID principles! WHY???
The alternative? better inject the data and the methods into the class:
Now you can run any method and any amount of them! you can create new methods and run them.
I hope it will clear some thoughts!
Alexander Nguyen1-page. Well-formatted.
Muhammad AsifReading Excel files is a common task for data scientists, analysts, and developers working with data. Excel, with its ubiquitous presence…
Austin StarksIt literally took one try. I was shocked.