fet.common¶
Common and helper functions.
-
fet.common.
convert_times
(df, inplace=False)¶ Convert time strings and calculate duration.
- Parameters
df (pandas.DataFrame) – DataFrame with time_first and time_last.
inplace (bool, optional) – Extract features within provided DataFrame or return new DataFrame. Defaults to False.
- Returns
DataFrame is returned only if inplace=False, otherwise returns None.
- Return type
pandas.DataFrame