timeatlas.time_series.TimeSeries.trim

TimeSeries.trim(side: str = 'both') → timeatlas.time_series.time_series.TimeSeries

Remove NaNs from a TimeSeries start, end or both

Parameters

side – the side where to remove the NaNs. Valid values are either “start”, “end” or “both”. Default to “both”

Returns

TimeSeries