I have a csv file that I read into a pandas dataframe
platesStatistics= pd.read_csv('cells.csv',index_col=[0,1], header=[0,1])
I then want to get all 'mean' columns. I tried
platesStatistics['mean']
platesStatistics[:,'mean']
but it doesn't work (I also tried some commands with loc
). What confuses me is that
platesStatistics['A','mean']
works fine and returns a single series.
What is the right way to get the reduced dataframe? It is important to note that the actual file I'm working with is much larger, so extracting columns explicitly would be hard.