We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c8ab54 commit fb8bc55Copy full SHA for fb8bc55
1 file changed
src/ehrdata/io/pandas.py
@@ -270,7 +270,7 @@ def from_pandas(
270
if fill_time_gaps:
271
time_key = long_format_keys["time_column"]
272
current_times = xr_dataarray[time_key].values
273
- full_range = np.arange(int(current_times.min()), int(current_times.max()) + 1)
+ full_range = np.arange(0, int(current_times.max()) + 1)
274
# Select only the value variable before reindexing to avoid dtype conflicts
275
# (e.g. datetime64 columns can't be filled with np.nan)
276
xr_dataarray = xr_dataarray[[long_format_keys["value_column"]]].reindex(
0 commit comments