I was wondering what the correct way to deal with storing/reading through a list of items such as the following example dealing with a rockstar, where the list is known to hold a maximum number of values to hdf5:
Date_of_Birth
Bands[] - where the maximum number of bands is 10
Siblings[] - where the maximum number of siblings is 6
Date_of_Death
All of these would be column names.
One way I had considered, but turned out to give an error (ValueError: cannot reindex from a duplicate axis
) was to have duplicate column names. Otherwise, what I could do is have Bands 1
, Bands 2
etc... but that would make retrieval and querying bothersome. Is there a better way? Any help would be very much appreciated!