pynapple.core.interval_set.IntervalSet.as_units#

IntervalSet.as_units(units='s')[source]#

returns a pandas DataFrame with time expressed in the desired unit

Parameters:

units (None, optional) – ‘us’, ‘ms’, or ‘s’ [default]

Returns:

out – DataFrame with adjusted times

Return type:

pandas.DataFrame