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

fix: on read csv chunks and indexError on excel TCTC-1973 #96

Merged
merged 6 commits into from
Mar 2, 2022

Conversation

Sanix-Darker
Copy link
Contributor

@Sanix-Darker Sanix-Darker commented Mar 2, 2022

WHAT

During laputa integration, we needed to fix some errors during tests.

WHY

  • fix on read_csv for the iterator + added tests to handle chunksize and preview_nrows as params
    Screenshot from 2022-03-02 15-29-47

  • fix/catch IndexError when the preview_nrows is upper than all the available row
    Screenshot from 2022-03-02 17-27-37

  • fix retrocompatibility with read_xml
    Screenshot from 2022-03-02 17-41-24

  • bump from 0.7.4 to 0.7.5

@Sanix-Darker Sanix-Darker self-assigned this Mar 2, 2022
@Sanix-Darker Sanix-Darker added the wip Work in progress label Mar 2, 2022
@codecov
Copy link

codecov bot commented Mar 2, 2022

Codecov Report

Merging #96 (593b993) into main (750748c) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main       #96   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines          847       858   +11     
=========================================
+ Hits           847       858   +11     
Impacted Files Coverage Δ
peakina/readers/csv.py 100.00% <100.00%> (ø)
peakina/readers/excel.py 100.00% <100.00%> (ø)
peakina/readers/xml.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 750748c...593b993. Read the comment docs.

@Sanix-Darker Sanix-Darker changed the title Fix/read csv chunks fix: on read csv chunks and indexError on excel Mar 2, 2022
Copy link
Member

@davinov davinov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Maybe add just a quick comment ot explain the "translation" of nrows to preview_nrows (same for skiprows)

@Sanix-Darker Sanix-Darker merged commit aebfc01 into main Mar 2, 2022
@Sanix-Darker Sanix-Darker changed the title fix: on read csv chunks and indexError on excel fix: on read csv chunks and indexError on excel TCTC-1973 Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wip Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants