emperor.Emperor._base_data_checks

Emperor._base_data_checks(category, data, d_type)

Perform common checks in the methods that modify the plot

Parameters:

category: str

The metadata category used for this attribute.

data: dict or pd.Series

Mapping of metadata value to attribute.

d_type: object

The required type in the data mappings.

Returns:

dict

Validated and consumable dictionary of attribute mappings.