diff --git a/pynapple/core/time_series.py b/pynapple/core/time_series.py index 7fe0023a..62d551f0 100644 --- a/pynapple/core/time_series.py +++ b/pynapple/core/time_series.py @@ -228,29 +228,31 @@ def __array_function__(self, func, types, args, kwargs): def as_array(self): """ - Return the data as a numpy.ndarray + Return the data. Returns ------- - out: numpy.ndarray + out: array-like _ """ return self.values def data(self): """ - Return the data as a numpy.ndarray + Return the data. Returns ------- - out: numpy.ndarray + out: array-like _ """ return self.values def to_numpy(self): """ - Return the data as a numpy.ndarray. Mostly useful for matplotlib plotting when calling `plot(tsd)` + Return the data as a numpy.ndarray. + + Mostly useful for matplotlib plotting when calling `plot(tsd)`. """ return np.asarray(self.values)