Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit f821da4

Browse files
committed
Very minor tweaks to docstring.
1 parent 882e7f0 commit f821da4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nowcasting_dataset/time.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def get_contiguous_time_periods(
192192
min_seq_length: int,
193193
max_gap_duration: pd.Timedelta = THIRTY_MINUTES,
194194
) -> pd.DataFrame:
195-
"""Returns a pd.DataFrame where each row records the boundary of a contiguous time periods.
195+
"""Return a pd.DataFrame where each row records the boundary of a contiguous time period.
196196
197197
Args:
198198
datetimes: The pd.DatetimeIndex of the timeseries. Must be sorted.
@@ -219,7 +219,7 @@ def get_contiguous_time_periods(
219219

220220
# gap_indicies are the indices into dt_index for the timestep immediately
221221
# *before* the gap. e.g. if the datetimes at 12:00, 12:05, 18:00, 18:05
222-
# then gap_indicies will be [1]. So we add 1 to gap_indices to get
222+
# then gap_indicies will be [1]. So we add 1 to gap_indices to get
223223
# segment_boundaries, an index into dt_index which identifies the _start_
224224
# of each segment.
225225
segment_boundaries = gap_indices + 1

0 commit comments

Comments
 (0)