pastas.timeseries.TimeSeries.copy ================================= .. py:method:: pastas.timeseries.TimeSeries.copy(name: str | None = None) -> Self Method to copy a TimeSeries. :param name: String with the name of the model. If no name is provided, use the old name. :type name: str, optional :returns: **ts** -- Copy of the original TimeSeries with no references to the old TimeSeries. :rtype: pastas.timeseries.TimeSeries .. rubric:: Examples >>> ts_copy = ts.copy(name="new_name") .. !! processed by numpydoc !!