def _sanitize_units(self, **kwargs):
    "\n        Sanitises the collections.OrderedDict used to store the units.\n        Primarily this method will:\n\n        Remove entries that don't match up to a column,\n        Add unitless entries for columns with no units defined.\n        Re-arrange the order of the dictionary to match the columns.\n        "
    warnings.simplefilter('always', Warning)
    for column in (set(self.data.columns.tolist()) - set(self.units.keys())):
        self.units[column] = u.dimensionless_unscaled
        warnings.warn(f'Unknown units for {column}.', SunpyUserWarning)
    units = OrderedDict()
    for column in self.data.columns.tolist():
        units.update({column: self.units[column]})
    self.units = units
Sanitises the collections.OrderedDict used to store the units.
Primarily this method will:

Remove entries that don't match up to a column,
Add unitless entries for columns with no units defined.
Re-arrange the order of the dictionary to match the columns.
def _sanitize_units(self, **kwargs):
    "\n        Sanitises the collections.OrderedDict used to store the units.\n        Primarily this method will:\n\n        Remove entries that don't match up to a column,\n        Add unitless entries for columns with no units defined.\n        Re-arrange the order of the dictionary to match the columns.\n        "
    warnings.simplefilter('always', Warning)
    for column in (set(self.data.columns.tolist()) - set(self.units.keys())):
        self.units[column] = u.dimensionless_unscaled
        warnings.warn(f'Unknown units for {column}.', SunpyUserWarning)
    units = OrderedDict()
    for column in self.data.columns.tolist():
        units.update({column: self.units[column]})
    self.units = units