flat_inverse_mapping()
Given a condensed mapping construct a flat inverse mapping.
condensed_mapping – A mapping from coarse to a list-like of (or a single) fine categories as dict, Series, etc. or anything else with a .items method.
dict
Series
Returns a Series containing a mapping from fine to coarse categories.