units_attach¶
-
heliopy.data.util.
units_attach
(data, units, warn_missing_units=True)¶ Takes the units defined by the user and attaches them to the TimeSeries.
- Parameters
data (
pandas.DataFrame
) – Input data. Takes the DataFrame which needs to have units attached.units (
collections.OrderedDict
) – The units manually defined by the user.
- Returns
out – DataFrame converted into TimeSeries with units attached.
- Return type