weldx.util.pandas_time_delta_to_quantity¶
-
weldx.util.
pandas_time_delta_to_quantity
(time, unit='s')¶ Convert a
pandas.TimedeltaIndex
into a correspondingpint.Quantity
.- Parameters
time (pandas.TimedeltaIndex) – Instance of
pandas.TimedeltaIndex
unit (
str
) – String that specifies the desired time unit.
- Returns
Converted time quantity
- Return type