-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: read_fwf inference should respect skiprows (#11256) #14028
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
Conversation
self.f = f | ||
self.buffer = None | ||
self.delimiter = '\r\n' + delimiter if delimiter else '\n\r\t ' | ||
self.comment = comment | ||
if skiprows is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need this here (as you do it below)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure if the path I was using was the only way these functions were called, but I can remove all but one.
can you rebase / update? |
@dsm054 Do you have time to update this? |
can you rebase / update pls move release note to 0.20.0 |
Okay, will have another look at this now while rooting for Clemson. |
11aa4e3
to
b5b3e66
Compare
Current coverage is 84.77% (diff: 95.00%)@@ master #14028 diff @@
==========================================
Files 145 145
Lines 51212 51220 +8
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 43413 43421 +8
Misses 7799 7799
Partials 0 0
|
thanks @dsm054 if you want to do a followup to handle and I guess |
Fix the fact that we don't skip the rows when inferring colspecs by passing skiprows down the chain until it's needed. - [X] closes pandas-dev#11256 - [X] 3 tests added / passed - [X] passes `git diff upstream/master | flake8 --diff` - [X] whatsnew entry Author: D.S. McNeil <[email protected]> Closes pandas-dev#14028 from dsm054/bugfix/fwf_skiprows and squashes the following commits: b5b3e66 [D.S. McNeil] BUG: read_fwf inference should respect skiprows (pandas-dev#11256)
Fix the fact that we don't skip the rows when inferring colspecs by passing skiprows down the chain until it's needed.
git diff upstream/master | flake8 --diff