I have a pivot table created from pandas (DataFrame object).
Currently, I have multiple indexes and I want to be able to filter through some of them. To clarify this is how the pivot tables looks like.
There are 1000s of those. What I want to be able to do is get all the instances where opt_step is 1, cf is pv_area_cost1a
and when the optimization is MANHATTAN. The end goal is to be able to graph iterations vs cost for some instances.
The pivot table is called pt. I've tried pt.index.get_level_values['pv_area_cost1a']
and I have read the entire page in advanced indexing to no avail.