Skip to content

[0.5.4] - 2026-06-23 - #10

Merged
jiro-iwanaga merged 3 commits into
mainfrom
fix/split-by-date
Jun 23, 2026
Merged

jiro-iwanaga merged 3 commits into
mainfrom
fix/split-by-date

Conversation

@jiro-iwanaga

Copy link
Copy Markdown
Owner

Fixed

  • split_by_date() no longer raises OutOfBoundsDatetime ("Cannot cast 0001-01-01 ... to
    unit='ns' without overflow") on datetime64[ns] time columns. The internal ordinal
    conversion (normalize_sequence_col) anchored on 0001-01-01, which is outside the
    nanosecond-resolution range; subtracting it from an ns series forced a resolution alignment
    that overflowed. The origin is now the Unix epoch (1970-01-01) plus its ordinal offset,
    yielding identical results without overflow. Surfaced with nanosecond datetimes
    (e.g. split_by_date(df, "2015-07-06", observation_days=6, gt_days=1)).

@jiro-iwanaga
jiro-iwanaga merged commit 2ddede8 into main Jun 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant