0

I have a csv file that I read into a pandas dataframe

enter image description here

platesStatistics= pd.read_csv('cells.csv',index_col=[0,1], header=[0,1])

enter image description here

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.

Shaharg
  • 971
  • 1
  • 11
  • 26

0 Answers0