-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: None should be a valid colspec? #7079
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
Comments
this is not called directly by a user, rather you call |
Sorry, let me clarify: the issue is not that colspecs is None, but that So these lines
should be
On Thu, May 8, 2014 at 3:12 PM, jreback [email protected] wrote:
|
ok, can you put up an example that fails (that you think should work) what does a None columnspec mean? |
None as a colspec should mean the same as None as a slice index. As the So the example above should create a frame with a single column that On Thu, May 8, 2014 at 3:21 PM, jreback [email protected] wrote:
|
what I mean is a copy-pastable example, that shows the input and output |
assertion On Thu, May 8, 2014 at 3:31 PM, jreback [email protected] wrote:
|
Slicing until the end of the line seems correct. @AllenDowney I can submit a pull request to fix this if you want. |
Yes, please. In retrospect I could have done that myself. OTOH, I am running a stable release, so I am not really set up to modify On Thu, May 8, 2014 at 4:43 PM, Tom Augspurger [email protected]:
|
I think your time is more valuable writing great books :) Thanks for the report! |
Thank you! On Thu, May 8, 2014 at 4:55 PM, Tom Augspurger [email protected]:
|
In https://github.com/pydata/pandas/blob/master/pandas/io/parsers.py, the init method for FixedWidthReaders checks whether the colspecs are valid. Since None is a value slice index, should it be allowed as a colspec?
This would help me because I don't know the width of the last column until I start reading the file.
The text was updated successfully, but these errors were encountered: