pynapple.core.time_series.TsdFrame.__init__#

TsdFrame.__init__(t, d=None, time_units='s', time_support=None, columns=None, load_array=True)[source]#

TsdFrame initializer A pandas.DataFrame can be passed directly

Parameters:
  • t (numpy.ndarray or pandas.DataFrame) – the time index t, or a pandas.DataFrame (if d is None)

  • d (numpy.ndarray) – The data

  • time_units (str, optional) – The time units in which times are specified (‘us’, ‘ms’, ‘s’ [default]).

  • time_support (IntervalSet, optional) – The time support of the TsdFrame object

  • columns (iterables) – Column names

  • load_array (bool, optional) – Whether the data should be converted to a numpy (or jax) array. Useful when passing a memory map object like zarr. Default is True. Does not apply if d is already a numpy array.