The GitHub Actions job "LSP Test Workflow" on 
hamilton.git/stefan/update-package-names has failed.
Run started by GitHub user skrawcz (triggered by skrawcz).

Head commit for run:
b7e1a9e7b7e453015660210654872edf31a3e731 / Stefan Krawczyk 
<[email protected]>
Fix pandas 2.2+ compatibility in pandas_extensions.py

This fixes CI test failures in test_adapters.py::test_parallel_ray* tests
that were failing with: TypeError: read_csv() got an unexpected keyword
argument 'verbose'

The issue was that pandas 2.2.0 removed several deprecated parameters:
- verbose (deprecated in 2.1.0, removed in 2.2.0)
- keep_date_col (deprecated in 2.1.0, removed in 2.2.0)
- delim_whitespace (deprecated in 2.1.0, removed in 2.2.0)

Previous code was using string comparison (pd.__version__ < "3.0") which
fails because:
1. String comparison doesn't work correctly for version numbers
2. The parameters were removed in 2.2.0, not 3.0

Changes:
- Added packaging.version.Version import for proper version comparison
- Changed all pd.__version__ comparisons to use Version objects
- Updated threshold from "3.0" to "2.2" for deprecated parameters
- Fixed all other version checks (dtype_backend, use_nullable_dtypes)

Testing:
- Verified locally with pandas 2.2.3
- All three failing tests now pass:
  * test_parallel_ray
  * test_parallel_ray_sample
  * test_parallel_ray_sample_error

Related: https://github.com/apache/hamilton/actions/runs/22340217943

Report URL: https://github.com/apache/hamilton/actions/runs/22341578965

With regards,
GitHub Actions via GitBox

Reply via email to