Skip to content

chore(deps): bump pandas from 2.3.3 to 3.0.6 - #45325

Merged
aminghadersohi merged 8 commits into
masterfrom
dependabot/pip/pandas-3.0.6
Oct 29, 2026
Merged

aminghadersohi merged 8 commits into
masterfrom
dependabot/pip/pandas-3.0.6

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 15, 2026

Copy link
Copy Markdown
Contributor

Bumps pandas from 2.3.3 to 3.0.6.

Release notes

Sourced from pandas's releases.

pandas 3.0.6

We are pleased to announce the release of pandas 3.0.6. This is a patch release in the 3.0.x series and includes some regression fixes and bug fixes. We recommend that all users of the 3.0.x series upgrade to this version. This is also the first release to support Python 3.15.

See the full whatsnew for a list of all the changes.

Pandas 3.0 supports Python 3.11 and higher. The release can be installed from PyPI:

python -m pip install --upgrade pandas==3.0.*

Or from conda-forge

conda install -c conda-forge pandas=3.0

Please report any issues with the release on the pandas issue tracker.

Thanks to all the contributors who made this release possible.

pandas 3.0.5

We are pleased to announce the release of pandas 3.0.5. This is a patch release in the 3.0.x series and includes some regression fixes and bug fixes. We recommend that all users of the 3.0.x series upgrade to this version.

See the full whatsnew for a list of all the changes.

Pandas 3.0 supports Python 3.11 and higher. The release can be installed from PyPI:

python -m pip install --upgrade pandas==3.0.*

Or from conda-forge

conda install -c conda-forge pandas=3.0

Please report any issues with the release on the pandas issue tracker.

Thanks to all the contributors who made this release possible.

pandas 3.0.4

We are pleased to announce the release of pandas 3.0.4. This is a patch release in the 3.0.x series and includes some regression fixes and bug fixes. We recommend that all users of the 3.0.x series upgrade to this version.

See the full whatsnew for a list of all the changes.

Pandas 3.0 supports Python 3.11 and higher. The release can be installed from PyPI:

python -m pip install --upgrade pandas==3.0.*

Or from conda-forge

... (truncated)

Commits
  • 2905718 RLS: 3.0.6
  • 3188ced [backport 3.0.x] BUG: read_csv(sep=None) raised TypeError instead of falling...
  • f097905 DOC: 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...
  • b7735f6 Backport 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)
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot Bot added dependabot major Dependabot PRs that bump major version for dependencies pip Dependabot - pip related PRs labels Oct 15, 2026
@rusackas

Copy link
Copy Markdown
Member

Also a real migration, not a drop-in bump. pandas 3.0 defaults string columns to a PyArrow-backed StringDtype instead of object, tightens to_datetime on mixed-timezone input, and drops dropna= on a couple of DataFrame methods. Breaks dtype inference in to_sql, the CSV reader, and temporal axis parsing (saw failures in csv_reader_test.py, helpers_test.py, core_test.py, result_set_test.py). Tagging hold:needs-work.

dependabot Bot and others added 4 commits October 21, 2026 19:39
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]>
@rusackas
rusackas force-pushed the dependabot/pip/pandas-3.0.6 branch from fb25d7e to ef305b9 Compare October 22, 2026 03:37
@pull-request-size pull-request-size Bot added size/L and removed size/S labels Oct 22, 2026
@rusackas

Copy link
Copy Markdown
Member

Went through this one. requirements/base.txt/development.txt were already regenerated, but the actual code needed real fixes, not just a version bump — pandas 3.0 flips a handful of defaults that broke non-mechanical parts of the stack:

  • stack()'s dropna/sort kwargs are gone (the "future" implementation never introduces rows to drop), so pivot's combine_value_with_metric reshape didn't need dropna=False anymore.
  • resample's asfreq(fill_value=...)/interpolate() now reject writing a number into a non-numeric column instead of silently coercing it, so those are scoped to numeric columns only.
  • boxplot's numeric coercion only checked is_object_dtype, missing the new default StringDtype.
  • 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.
  • histogram and utils._append_columns both had a .loc[:, col] = assignment that now raises instead of coercing when the dtype actually needs to change (e.g. an int64 column overwritten by a rolling sum that introduces NaN).
  • rolling's quantile option got renamed to q upstream; translated at the call site so our own rolling_type_options API doesn't change.
  • _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").
  • result_set's tzinfo fix-up for FixedOffsetTimezone values hardcoded "ns" resolution, which could either overflow (far-future dates) or lose precision (nanosecond-precision values in a column pandas infers more coarsely) depending on the data — now matches whatever resolution the just-converted series itself picked, which pandas already chose losslessly.

Also worth flagging: pandas 3 genuinely improved round-tripping a fixed-offset tz dtype string ("UTC-04:00") through pd.Series(dtype=...) with no sample value to infer it from — pandas 2 used an unparseable pytz.FixedOffset(-240)-style repr there. One of the SQL result-cache tests assumed the old failure mode as a cache-miss case; updated it since it's just a straight improvement.

Everything else was test-only: dtype assertions checking literally == object (now StringDtype), and a couple of dates that no longer overflow pandas' widened non-nanosecond datetime64 range.

Full local run is clean (29756 passed) modulo two pre-existing ARM64-only failures unrelated to this bump (np.longdouble is just float64 on Apple Silicon, so a 1e400 literal overflows locally but not on the x86_64 CI runners).

@netlify

netlify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit a921724
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6ae2c36d55643ceebc15f2e7
😎 Deploy Preview https://deploy-preview-45325--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

codecov Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.22222% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 84.37%. Comparing base (2350348) to head (a921724).

Files with missing lines Patch % Lines
superset/models/helpers.py 80.00% 1 Missing ⚠️
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     
Flag Coverage Δ
hive 34.52% <8.33%> (-0.01%) ⬇️
mysql 52.54% <16.66%> (-0.01%) ⬇️
postgres 52.55% <16.66%> (-0.01%) ⬇️
presto 36.25% <8.33%> (-0.01%) ⬇️
python 87.73% <97.22%> (-0.01%) ⬇️
sqlite 52.31% <16.66%> (-0.01%) ⬇️
unit 82.45% <97.22%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aminghadersohi
aminghadersohi self-requested a review October 27, 2026 20:16

@aminghadersohi aminghadersohi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

rusackas and others added 2 commits October 29, 2026 03:52
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@aminghadersohi
aminghadersohi merged commit 7ad1d7f into master Oct 29, 2026
94 of 95 checks passed
@aminghadersohi
aminghadersohi deleted the dependabot/pip/pandas-3.0.6 branch October 29, 2026 14:19
hainenber pushed a commit that referenced this pull request Nov 14, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependabot dependencies:python major Dependabot PRs that bump major version for dependencies pip Dependabot - pip related PRs size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants