Skip to content

deps: loosen pandas/plotly specs, fix compat for newer versions - #273

Merged
lmmentel merged 2 commits into
masterfrom
deps/loosen-pandas-plotly
Sep 10, 2026
Merged

lmmentel merged 2 commits into
masterfrom
deps/loosen-pandas-plotly

Conversation

@lmmentel

@lmmentel lmmentel commented Sep 10, 2026 •

Copy link
Copy Markdown
Owner

Summary

Loosen upper-bound dependency specs for pandas and plotly to allow newer major versions, and fix compatibility issues.

Changes

  • pandas: ^2.1 -> >=2.1 — allows future pandas 3.x (currently blocked by Python 3.10 support requirement)
  • plotly: ^5.0 -> >=5.0 — now allows plotly 6.x/7.x (both optional and vis group specs)
  • vis/bokeh.py, vis/plotly.py: Replace deprecated pandas.api.types.is_float_dtype() with np.issubdtype() (the former is removed in pandas 3.0)
  • vis/utils.py: Fix FutureWarning — select column before groupby.apply instead of operating on grouping columns

Testing

  • 2348 tests pass, 0 failures
  • Warnings reduced from 33 to 5 (remaining are legitimate UserWarnings)
  • ruff lint + format: passed

Notes

  • pandas 3.0 requires Python >=3.11, so it won't resolve for users on Python 3.10 even with the loosened spec — this is correct behavior
  • plotly 7.0 resolved successfully (removed deprecated Figure Factory functions not used by this project)

fixes #272

- pandas: ^2.1 -> >=2.1 (allows future pandas 3.x)
- plotly: ^5.0 -> >=5.0 (now allows plotly 6.x/7.x)
- Replace deprecated pandas.api.types.is_float_dtype() with np.issubdtype()
  in vis/bokeh.py and vis/plotly.py
- Fix FutureWarning in vis/utils.py: select column before groupby.apply
  instead of operating on grouping columns
@lmmentel lmmentel self-assigned this Sep 10, 2026
@lmmentel
lmmentel marked this pull request as ready for review September 10, 2026 19:42
@lmmentel
lmmentel merged commit fe323a8 into master Sep 10, 2026
21 checks passed
@lmmentel
lmmentel deleted the deps/loosen-pandas-plotly branch September 10, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compatibility with pandas >= 3

1 participant