Repository navigation
chore(deps): bump pandas from 2.3.3 to 3.0.6 - #45325
Conversation
|
Also a real migration, not a drop-in bump. pandas 3.0 defaults string columns to a PyArrow-backed |
Bumps [pandas](https://github.com/pandas-dev/pandas) from 2.3.3 to 3.0.6. - [Release notes](https://github.com/pandas-dev/pandas/releases) - [Commits](pandas-dev/pandas@v2.3.3...v3.0.6) --- updated-dependencies: - dependency-name: pandas dependency-version: 3.0.6 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
… for pandas 3.0
pandas 3.0 flips several defaults that broke non-mechanical parts of the
stack:
- stack()'s dropna/sort kwargs are removed (the "future" implementation
never introduces rows to drop), so pivot's combine_value_with_metric
reshape no longer needs dropna=False.
- resample's asfreq(fill_value=...)/interpolate() now reject writing a
number into a non-numeric column instead of silently coercing it, so
fill/interpolate are scoped to numeric columns only.
- boxplot's numeric coercion only checked is_object_dtype, missing the new
default StringDtype; switched to is_numeric_dtype.
- contribution's all-null/Decimal object columns no longer get silently
downcast to float by fillna(), so a 0/0 cell divides as plain Python ints
and raises ZeroDivisionError instead of producing NaN; cast explicitly.
- histogram's to_numeric reassignment via `.loc[:, col] =` into a str-typed
column now raises instead of coercing; switched to plain assignment.
- utils._append_columns' bulk `.loc[:, keys] = df` has the same issue for a
dtype-changing overwrite (e.g. an int64 column overwritten by a rolling
sum that introduces NaN); now tries the lossless `.loc` path per column
first and falls back to full column replacement only when that raises.
- rolling's `quantile` option was renamed to `q` upstream; translated at the
call site so the public rolling_type_options API is unchanged.
- _parse_temporal_join_values now falls back to element-wise parsing when
pandas refuses to unify a column of differently-offset datetime strings
into one dtype ("Mixed timezones detected"), restoring the per-element
wall-clock normalization this function's caller already handles.
- result_set's tzinfo fix-up for FixedOffsetTimezone values hardcoded "ns"
resolution, which now raises ArrowInvalid for a far-future timestamp valid
at pandas 3's wider default resolutions; matches the column's own unit
instead.
Remaining failures were test-only assertions of the literal dtype name
(object -> the new default StringDtype) or dates that no longer overflow
pandas' widened non-nanosecond datetime64 range, updated to match.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
…columns
Reusing the just-to_datetime-converted series' resolution (previous commit)
broke the opposite way: for a column whose first non-empty sample lacks
sub-second precision but a later value has nanosecond precision, pandas
picks "ns" for the whole column, while the original array had already
inferred a coarser unit (e.g. "us") from an empty/all-null sample -- casting
a nanosecond-precision raw value down to that coarser unit then raises
ArrowInvalid for data loss, the inverse of the original overflow bug.
Also: pandas 3 now round-trips a fixed-offset ("UTC-04:00") dtype string
through pd.Series(dtype=...) even with no non-null value to infer it from,
where pandas 2's unparseable "pytz.FixedOffset(-240)")-style string always
required one -- a real, cache-relevant upgrade, not a quirk to route
around, so the SQL result cache test's conditional miss expectation for
that case no longer applies.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
fb25d7e to
ef305b9
Compare
|
Went through this one.
Also worth flagging: pandas 3 genuinely improved round-tripping a fixed-offset tz dtype string ( Everything else was test-only: dtype assertions checking literally Full local run is clean (29756 passed) modulo two pre-existing ARM64-only failures unrelated to this bump ( |
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
pandas 3 parses the fixed-offset timezone dtype strings that used to reach the fallback in _records_to_dataframe, leaving it uncovered and dropping tests/unit_tests/sql below the 100% coverage gate. Exercise the fallback directly with a dtype string pandas cannot parse.
…das 3 pandas 3 infers string values as StringDtype, which the Redshift engine spec maps to NVARCHAR(65535) by design. Cast the frame to object so the test keeps covering the case with no string dtype columns.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #45325 +/- ##
==========================================
- Coverage 84.63% 84.37% -0.26%
==========================================
Files 3069 3056 -13
Lines 205446 204138 -1308
Branches 48306 47688 -618
==========================================
- Hits 173879 172246 -1633
- Misses 28277 28601 +324
- Partials 3290 3291 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
aminghadersohi
left a comment
There was a problem hiding this comment.
Reviewed the full source diff at 5cd8790 (models/helpers, result_set, pandas_postprocessing, tests). The pandas 3 adaptations are scoped and covered by tests; required checks are green. No issues found.
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Evan Rusackas <[email protected]> Co-authored-by: Amin Ghadersohi <[email protected]> Co-authored-by: Evan Rusackas <[email protected]>
Bumps pandas from 2.3.3 to 3.0.6.
Release notes
Sourced from pandas's releases.
... (truncated)
Commits
2905718RLS: 3.0.63188ced[backport 3.0.x] BUG: read_csv(sep=None) raised TypeError instead of falling...f097905DOC: cleanup 3.0.6 whatsnew + mention Python 3.15 support (#68965) (#68969)4f68223[backport 3.0.x] BUG: fix setting with bool column mask into 1-column DataFra...e3df0e8[backport 3.0.x] BUG: full-slice setitem into a pyarrow-backed array shared m...b7735f6Backport PR #66117 on branch 3.0.x (BUG: interpolate leaving NAs unfilled for...bca0b77[backport 3.0.x] BUG: read_csv leaked the string-intern table when a column f...bca1e5d[backport 3.0.x] BUG: prevent external mutation of RangeIndex._data (CoW) (#6...c95b42c[3.0.x] CI: skip cython-lint on pre-commit.ci (#68910)9cbd884[backport 3.0.x] Backport of some already merged regression fixes (#68447)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)