Update dependencies - #44
Merged
Merged
Conversation
pandas 3.0 changed several defaults: all-string object columns are now auto-inferred to a new string dtype (breaking object-dtype detection in dt_cols_to_str), missing values in such columns collapse pd.NA to nan (breaking summarize_freq's display formatting), and pd.Timestamp now defaults to microsecond resolution instead of nanosecond (breaking StatusManager's schema validation). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YYA95TygUoyxhmKnvT83bN
…ization dt_cols_to_str's purpose is to make columns JSON-serializable, which pandas 3's auto-inferred string dtype (na_value=nan) already satisfies for the na="drop"/"null" paths actually used by save_geo_output. Normalizing to na_value=<NA> only mattered for strict dtype-identity checks in the tests, not for the function's actual behavior, so relax those checks instead of changing dt_cols_to_str. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YYA95TygUoyxhmKnvT83bN
Use pandas 3's "us" resolution default throughout StatusManager instead of pinning to "ns". Nanosecond resolution added no real precision (Python's datetime only carries microseconds) while needlessly narrowing the representable date range to ~1677-2262; "us" avoids that and matches the new pandas default, so there's no more special-casing needed in add(). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YYA95TygUoyxhmKnvT83bN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
us, matching the python datetime precision) instead of nanoseconds.