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

manahl / PyBloqs / f5371eee-6366-4f4a-a251-cf08a843ef06
89%
master: 89%

Build:
Build:
LAST BUILD BRANCH: fix/pandas3-table-formatters
DEFAULT BRANCH: master
Ran 31 Aug 2026 01:06PM UTC
Jobs 4
Files 38
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

31 Aug 2026 01:04PM UTC coverage: 88.647% (-0.1%) from 88.791%
f5371eee-6366-4f4a-a251-cf08a843ef06

Pull #177

circleci

WatchTree-19
fix: pandas 3 compatibility in table_formatters

The 8 test failures on build_3_11 and build_3_12 come from three pandas 3
changes. Reproduced on clean master against pandas 3.0.5.

1. Series._append and DataFrame._append were private and are gone in pandas 3.
   Replaced with pd.concat behind two helpers next to the existing
   _pandas_df_map_compat.

2. Assigning "" into a numeric Series or DataFrame no longer silently upcasts
   to object, it raises TypeError: Invalid value '' for dtype 'float64'. Widen
   to object explicitly first. The widening is guarded on the blanking mask
   being non-empty, because pandas 2 only upcast when something was actually
   assigned, and casting unconditionally turned an all-numeric totals row or
   column into object and changed the result.

3. Concatenating an empty object Series onto a numeric row widens it to object,
   which Series._append did not do, so the concat is skipped when there are no
   non-numeric columns to blank.

With these, FmtAppendTotalsRow, FmtAppendTotalsColumn and FmtExpandMultiIndex
return identical values and dtypes on pandas 2.3.3 and 3.0.5.

One test change: test_FmtAppendTotalsRow_modify_dataframe built its expected
Series from a list of strings, which infers the new "str" dtype on pandas 3,
while the appended row is object on both. Pinned dtype=object, which is what
the function returns on either version.

Signed-Off By Sandeep Singh Rai sandeeprai_dsp@hotmail.com
Pull Request #177: fix: pandas 3 compatibility in table_formatters

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

2522 of 2845 relevant lines covered (88.65%)

3.55 hits per line

Jobs
ID Job ID Ran Files Coverage
1 f5371eee-6366-4f4a-a251-cf08a843ef06.1 31 Aug 2026 01:06PM UTC 38
88.65
CircleCI Job
2 f5371eee-6366-4f4a-a251-cf08a843ef06.2 31 Aug 2026 01:07PM UTC 38
88.64
CircleCI Job
3 f5371eee-6366-4f4a-a251-cf08a843ef06.3 31 Aug 2026 01:07PM UTC 38
88.65
CircleCI Job
4 f5371eee-6366-4f4a-a251-cf08a843ef06.4 31 Aug 2026 01:07PM UTC 38
88.65
CircleCI Job
Source Files on build f5371eee-6366-4f4a-a251-cf08a843ef06
  • Tree
  • List 38
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #F5371EEE...
  • Pull Request #177
  • PR Base - master (#A81479AA...)
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