Skip to content

Commit fb8bc55

Browse files
committed
start from 0 as mentioned in docstring
1 parent 5c8ab54 commit fb8bc55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ehrdata/io/pandas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def from_pandas(
270270
if fill_time_gaps:
271271
time_key = long_format_keys["time_column"]
272272
current_times = xr_dataarray[time_key].values
273-
full_range = np.arange(int(current_times.min()), int(current_times.max()) + 1)
273+
full_range = np.arange(0, int(current_times.max()) + 1)
274274
# Select only the value variable before reindexing to avoid dtype conflicts
275275
# (e.g. datetime64 columns can't be filled with np.nan)
276276
xr_dataarray = xr_dataarray[[long_format_keys["value_column"]]].reindex(

0 commit comments

Comments
 (0)