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

petl-developers / petl / 39295358161
94%

Build:
DEFAULT BRANCH: master
Ran 19 Oct 2026 05:37PM UTC
Jobs 1
Files 134
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

19 Oct 2026 05:35PM UTC coverage: 92.685% (+0.02%) from 92.669%
39295358161

push

github

web-flow
Fix toarray() on tables without data rows (#746)

This fixes `toarray()` / `torecarray()` on a
table that has a header but no data rows, e.g. `etl.toarray([('foo',
'bar')])`. With no `dtype`, the type is inferred with `np.rec.array()`
over the sampled rows, which raises `IndexError: tuple index out of
range` when there are none.

Changes:

1. Fixed a bug in `infer_dtype()`: with no rows it now returns a dtype
with the header's field names and `object` type (which is also what
pandas gives for an empty DataFrame), so an empty array is returned.
2. Added a test and a changelog entry.

35 of 35 new or added lines in 2 files covered. (100.0%)

15533 of 16759 relevant lines covered (92.68%)

0.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 39295358161.1 19 Oct 2026 05:37PM UTC 134
92.68
GitHub Action Run
Source Files on build 39295358161
  • Tree
  • List 134
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 866f2b6a on github
  • Prev Build on master (#38964457660)
  • Next Build on master (#39295931315)
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