• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hgrecco / pint-pandas / 41358238320
90%

Build:
DEFAULT BRANCH: master
Ran 01 Nov 2026 10:40PM UTC
Jobs 1
Files 2
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Nov 2026 10:39PM UTC coverage: 90.237% (+0.4%) from 89.868%
41358238320

push

github

web-flow
Fix factorize of object-backed PintArray and remove stale skips (#324)

* Fix factorize of object-backed PintArray and remove stale skips

_values_for_factorize returned a Quantity NA sentinel alongside the
unitless object magnitudes. The factorize hashtable compares each value
to the sentinel, and numpy scalar magnitudes (eg np.int64(10)) dispatch
that comparison to np.equal, which pint rejects with DimensionalityError.
Use the magnitude array's own sentinel instead. This unskips
test_sort_values_frame for object magnitudes.

Also remove the floordiv/mod skips for Quantity scalar operands: those
operations work and the 32 affected tests pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Xfail new pandas 3.1 where/mask list tests for integer magnitudes

pandas 3.1.0 added test_where_series_listlike_other(_wrong_length) and
test_mask_listlike_other_inplace (GH#63842). Series.where now converts a
list `other` with np.asarray and only falls back to an object array on
ValueError. For Quantities with integer magnitudes np.asarray calls
Quantity.__int__, which raises DimensionalityError, so the conversion
fails before PintArray is involved. These tests also fail on master with
pandas 3.1.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fix RecursionError in numpy functions taking a list of PintArrays

convert_np_inputs only converted PintArrays at the top level of the
__array_function__ args. For np.concatenate([a, b]) the arrays sit inside
a list, so func(*args) dispatched straight back to
PintArray.__array_function__ until the recursion limit. Recurse into
lists and tuples. Exposed by pandas-dev's new test_np_concatenate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

6 of 6 new or added lines in 1 file covered. (100.0%)

684 of 758 relevant lines covered (90.24%)

1.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 41358238320.1 01 Nov 2026 10:40PM UTC 2
90.24
GitHub Action Run
Source Files on build 41358238320
  • Tree
  • List 2
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • cef42b8d on github
  • Prev Build on master (#37547183088)
  • Next Build on master (#41358238385)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc