I have a nested structure like
target = \
{'A1':
{'B1': 'a1b1',
'B2': 'a1b2'
}
{'A2':
{'B1': 'a2b1',
'B2': 'a2b2'
}
}
how can I easily find all the items which have 'B2' in the second level (pandas terminology) i.e. ['a1b2', 'a2b2']
?
I tried
glom(target, T[:, 'B2'])
glom(target, Path(Path(), Path('B2')))