Skip to content

yggdrasil.arrow.extensions

extensions

ensure_tzdata

ensure_tzdata(*, force: bool = False, raise_on_failure: bool = False) -> bool

Make pyarrow's tzdata lookup succeed on Windows.

Returns True when a timezone-aware timestamp operation works at the end of the call, False otherwise. No-op (returns True) on non-Windows platforms and on repeat calls once a positive result has been cached.

Parameters

force: Bypass the cached positive result and rerun the probe + repair. raise_on_failure: Raise RuntimeError with manual-fix instructions when the final canary still fails. Useful at the top of scripts/tests that depend on timezone support.