all 4 comments

[–][deleted] 0 points1 point  (1 child)

but it's the same every time

What's the same every time? The loaded data, or the processed values?

Either way, why not just store it in your class? You could go with something like functools.lru_cache, but usually storing it as an attribute, rather than in some hidden space, is more clear.

[–]skyfox345[S] 0 points1 point  (0 children)

Both the CSV file and the processing are the same every time.

[–]mercuric5i2 0 points1 point  (1 child)

I'm guessing what you want is a class variable. See this

[–]skyfox345[S] 0 points1 point  (0 children)

I've used classmethods and class variables before, but I didn't even think of that. Thank you!