I have the following DateFrame:
record_id month day year plot species sex wgt
33320 33321 1 12 2002 1 DM M 44
33321 33322 1 12 2002 1 DO M 58
... ... ... ... ... ... ... ... ...
I want to display columns from year to wgt with values equal 27. I have done it on two lines:
df_slice = df[df.year == 27]
df_slice = df_slice.ix[:,'year':]
Is there any way to reduce it to one line?