transformTimeSeries() ===================== **Signature** .. code-block:: python resample( operation: str, interval: Union[ TimeSeries, hec.TimeSpan, datetime.timedelta, NoneType ] = None, offset: Union[ int, hec.TimeSpan, datetime.timedelta, NoneType ] = None, start_time: Union[ str, datetime.datetime, hec.HecTime, NoneType ] = None, end_time: Union[ str, datetime.datetime, hec.HecTime, NoneType ] = None, max_missing_percent: float = 25.0, entire_interval: Optional[bool] = None, before: Union[str, float] = 0.0, after: Union[str, float] = 'LAST', in_place: bool = False ) -> TimeSeries `Detailed Documentation `_ The hec-python-library equivalent of Jython method **transformTimeSeries()**: .. include:: _in_place.rst **Example** .. code-block:: python from hec import TimeSpan ts2 = ts1.resample("average", TimeSpan("PT6H")) ==== **Signature** .. code-block:: python iresample( operation: str, interval: Union[ TimeSeries, hec.TimeSpan, datetime.timedelta, NoneType ] = None, offset: Union[ int, hec.TimeSpan, datetime.timedelta, NoneType ] = None, start_time: Union[ str, datetime.datetime, hec.HecTime, NoneType ] = None, end_time: Union[ str, datetime.datetime, hec.HecTime, NoneType ] = None, max_missing_percent: float = 25.0, entire_interval: Optional[bool] = None, before: Union[str, float] = 0.0, after: Union[str, float] = 'LAST', ) -> TimeSeries Convenience method for calling ``resample`(...)` with ``in_place=True``. **Example** .. code-block:: python from hec import TimeSpan ts.iresample("average", TimeSpan("PT6H"))