Multi-dimensional/Nested DataFrame/Dataset/Panel in Pandas
I would like to store some multidimensional data in a pandas dataframe or panel such that I would like to be able to return for example: All the times for Runner A, Race A All the times(and names) for Race A for a certain year say 2015 Example data would look something like this, note that not all runners will have data for all years or all races. Could anyone suggest a good way to do this with Pandas or any other way? Name | Gender | Age Runner A | Male | 35 Race A Year | Time 2015 | 2:35:09 2014 | 2:47:34 2013 | 2:50:12 Race B Year | Time 2013 | 1:32:07 Runner B | Male | 29 Race A Year |