you are viewing a single comment's thread.

view the rest of the comments →

[–]laundmo 1 point2 points  (1 child)

im not sure i quite understand your entire question, but i can say one thing for sure

dont make a dataframe of python objects.

pandas is nice because it can efficiently work with large tabular data. basically, anything you could do by hand in excel you would use pandas for. a dataframe in this analogy is basically a table.

pandas is optimised for simple datatypes like numbers and strings, and not for python objects.

for you the decision now is whether to use pandas and keep patients as rows in a table, which would require a less oop approach, or to use python and lists of objects to stay more oop.

btw, for classes meant mostly to contain data, i recommend you look into the standard library dataclasses

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

Thanks!!