[python-package] remove unused fallback code in _pandas_to_numpy #7444

Open
jameslamb opened 2:14am on September 22, 2026 wants to merge 20 Ξ” into microsoft/lightgbm main from
python/misc-cleanups

Pull Request Overview

  • Opened on September 21, 2026
  • Status Open
  • Commit count 1 with first commit September 21, 2026

Total Delta

20 Total Diff Delta

Open Days

Open 10 weekdays

Test Delta

0 Diff Delta in Test Files
Breakdown by Phase

How long has this pull request spent in each phase of its lifecycle?

Data pending calculation for pull request

Author avatar

[python-package] remove unused fallback code in _pandas_to_numpy

Contributes to #7031

The Python package's minimum pandas floor is >=1.3.4:

https://github.com/lightgbm-org/LightGBM/blob/a0afb85496b1f483710d2a861330321eab794fff/python-package/pyproject.toml#L47-L50

This removes a fallback that was only needed for pandas>=1.0,<1.2.

cc @maxzw for visibility

No comments have been left on this PR.