utils/Utils.py
def parseTimeV(data:Series) -> Series:
    """Vectorized version of parseTime method.

    :param data: pandas Series object.
    :return: Same object with values converted to timedelta.
    """
    if data.name=='Time' or data.name=='Recording timestamp':
        return pandas.to_timedelta(data.astype(float), unit='s')
    else:
        return pandas.to_datetime(data.astype(str), infer_datetime_format=True) - date.today()
Vectorized version of parseTime method.

    :param data: pandas Series object.
    :return: Same object with values converted to timedelta.
    
Vectorized version of parseTime method.
Vectorized version of parseTime method .
def parseTimeV(data:Series) -> Series:
    if data.name=='Time' or data.name=='Recording timestamp':
        return pandas.to_timedelta(data.astype(float), unit='s')
    else:
        return pandas.to_datetime(data.astype(str), infer_datetime_format=True) - date.today()
def parseTimeV ( data : Series ) -> Series : if data . name == 'Time' or data . name == 'Recording timestamp' : return pandas . to_timedelta ( data . astype ( float ) , unit = 's' ) else : return pandas . to_datetime ( data . astype ( str ) , infer_datetime_format = True ) - date . today ( )
Vectorized version of parseTime method.
Vectorized version of parseTime method .
"""Vectorized version of parseTime method.

    :param data: pandas Series object.
    :return: Same object with values converted to timedelta.
    """
Same object with values converted to timedelta.
Same object with values converted to timedelta .
data
Series
pandas Series object.
pandas Series object .