I have created a series in which there is level corresponding to each subset of a series.
data = Series(np.random.randn(10),
.....: index=[['a', 'a', 'a', 'b', 'b', 'b', 'c', 'c', 'd', 'd'],
.....: [1, 2, 3, 1, 2, 3, 1, 2, 2, 3]])
data
a 1 0.670216
2 0.852965
3 -0.955869
b 1 -0.023493
2 -2.304234
3 -0.652469
c 1 -1.218302
2 -1.332610
d 2 1.074623
3 0.723642
I am able to select the data of a series through the outer index(level) of a series.I want to know how to select the data of a series using inner index.
data['b']
1 -0.023493
2 -2.304234
3 -0.652469