I need to select some data from a given dataframe with multiindex. Now I need to split it by the second index column.
Data1 Data2 Data3 Data4
first Second
A 2010
B 2010
C 2010
A 2011
B 2011
C 2011
D 2011
E 2011
A 2012
B 2012
C 2012
A 2013
B 2013
C 2013
E 2013
A 2014
B 2014
C 2014
A 2015
B 2015
C 2015
Now I want to select all the data between 2010 and 2014, how should I sub-index this Dataframe?