Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(python): Allow read_excel to handle bytes/BytesIO directly when using the "calamine" (fastexcel) engine #16344

Merged
merged 1 commit into from
May 21, 2024

Conversation

alexander-beedie
Copy link
Collaborator

@alexander-beedie alexander-beedie commented May 20, 2024

Support more recent versions of fastexcel (>= 0.10)1 being able to read bytes data directly; relevant for pl.read_excel when the engine is "calamine".

Footnotes

  1. https://github.com/ToucanToco/fastexcel/releases/tag/v0.10.0

… conjunction with the "calamine" (fastexcel) engine
@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature python Related to Python Polars labels May 20, 2024
@alexander-beedie alexander-beedie added the A-io-excel Area: reading/writing Excel files label May 20, 2024
@alexander-beedie alexander-beedie changed the title feat(python): Allow read_excel to handle bytes/BytesIO directly, in conjunction with the "calamine" (fastexcel) engine feat(python): Allow read_excel to handle bytes/BytesIO directly when using the "calamine" (fastexcel) engine May 20, 2024
Copy link

codecov bot commented May 20, 2024

Codecov Report

Attention: Patch coverage is 52.38095% with 10 lines in your changes are missing coverage. Please review.

Project coverage is 81.37%. Comparing base (9e3d614) to head (db3b3cb).
Report is 1 commits behind head on main.

Files Patch % Lines
py-polars/polars/io/spreadsheet/functions.py 52.38% 7 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16344      +/-   ##
==========================================
- Coverage   81.38%   81.37%   -0.02%     
==========================================
  Files        1403     1403              
  Lines      183750   183754       +4     
  Branches     2955     2957       +2     
==========================================
- Hits       149547   149528      -19     
- Misses      33692    33713      +21     
- Partials      511      513       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ritchie46 ritchie46 merged commit a6f4cb6 into pola-rs:main May 21, 2024
18 checks passed
@alexander-beedie alexander-beedie deleted the calamine-read-excel-bytes branch May 21, 2024 06:13
Wouittone pushed a commit to Wouittone/polars that referenced this pull request Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-io-excel Area: reading/writing Excel files enhancement New feature or an improvement of an existing feature python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants