I have imported some data (say, a few thousand transactions) into Pandas and now I have to perform some analysis on it. Examples include calculating variability, regression, etc. I was thinking of designing a class to import and store the data in an object and then calling methods on it. However, a lot of the objectives, which I thought I could write as methods, are interdependent. In other words, method3 requires output from method2, which itself needs output from method1. So obviously, I cannot call data.method3() directly.
How do I design such a class?
Bigger question: Should I even design a class or just write a procedural code for such a problem?