if I have a multi-index data frame in pandas like this.
test.index.names
FrozenList(['target', 'h', 'd', 'y', 'obsrv'])
test.index.values
('A', '15', '60', '0', 97),
('B', '15', '60', '0', 98),
I can index the data frame associated with target = A, h = 15, d = 60, y = 0, obrv = 97 by using a tuple like this
test.loc[('A', '15', '60', '0', 97)]
But I want to index this data frame somehow like this.
test(target = 'A', h = 15)...
such that the order inside does not matter. Is that possible ?