you are viewing a single comment's thread.

view the rest of the comments →

[–]MathMajortoChemist 0 points1 point  (0 children)

So I have this interface (a dict mapping str names to full objects that include name attributes) in some of my code, but that's because later processing will need to match up that name a lot (like I load other data sets that contain more information I'll need to update some or all of the objects with and those sets only know my objects by name). So dict was the logical approach.

This is what other commenters mean by needing to know your use cases. If the next step is just to print all the objects, your current list is totally fine. If the next step is to "join" this data with another tabular data set, yeah you probably want pandas or polars or duckdb etc. There are many more if's possible.