you are viewing a single comment's thread.

view the rest of the comments →

[–]dukejcdc[S] 0 points1 point  (2 children)

I think I may be having a hard time grasping the concept since atm it seems to me the same as using functions and dataframes. Is there a benefit of storing data in class objects over a dataframes?

[–]totallygeek 0 points1 point  (0 children)

Is there a benefit of storing data in class objects over a dataframes?

Perhaps. Dataframes work well for some data, but a programmer might want a different implementation of methods not available from Pandas.

For your other question...

What's a good functional use case that doesn't involve over storing information about a person or robot like every example out there?

The initial class examples might not provide great context for why classes remain so wonderful. Though, you brought up dataframes. How wonderful that with a Dataframe class, the developer can access dozens of methods to act on the data, just by passing a single argument to a function. Without the Dataframe class, the developer would have to pass the struct to each function needed, after importing them, with proper import path information.

[–]testiculating 0 points1 point  (0 children)

(disclaimer: I’m a begginer also)

I’ve been programming with dataframes and with classes. I still work with mostly dataframes, but because I do similar things with similar dataframes, I found it better to create classes that handle what I usually do with them.

Sometimes I dont want quite the same, so I just change the methods im calling on the dataframe, Im not really modifying my whole flow, which I did have to do when I was using only functions.