Skip to content

Conversation

CoolRanch29
Copy link

closes #9266

@shoyer
Copy link
Member

shoyer commented Jan 24, 2015

Thanks, this needs:

  1. a test case which breaks before this change (you can use the example from uin8 should be uint8 in io/parsers.py #9266; add it to pandas/io/tests/test_parsers.py)
  2. an addition the "bug fixes" section of docs/sources/whatsnew/0.16.0.txt (refer to the original issue)

@jreback jreback added IO CSV read_csv, to_csv Bug Dtype Conversions Unexpected or buggy dtype conversions labels Jan 25, 2015
@jreback jreback modified the milestones: 0.16.1, 0.16.0 Jan 25, 2015
@CoolRanch29
Copy link
Author

This is my first PR attempt and I don't understand this error message. Did I do something wrong in the test function I added?

Copy link
Member

Choose a reason for hiding this comment

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

I think the issue is that this line starts with extra whitespace, throwing off colspecs below.

@jreback jreback modified the milestones: 0.16.0, Next Major Release Mar 3, 2015
@jreback
Copy link
Contributor

jreback commented Mar 6, 2015

@CoolRanch29 I rebase and push your branch up here. pls review and update this PR when you can
https://github.com/jreback/pandas/tree/CoolRanch29-master

I am not sure what you are trying to compare against here (e.g. what should the expected frame look like?)

@jreback jreback modified the milestones: 0.16.1, Next Major Release Mar 6, 2015
@CoolRanch29
Copy link
Author

Okay, I added an expected frame to test again. The problem before is that pd.read_fwf wasn't working at all - an exception was thrown when trying to read the test case. I'm still concerned that in the resulting frame, the column 'dst' is of type 'object' when using read_fwf and of type 'float64' when created by DataFrame().

Copy link
Contributor

Choose a reason for hiding this comment

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

needs fixing here (eliminate the merge lines)

@jreback
Copy link
Contributor

jreback commented Mar 20, 2015

whats new is now available for 0.16.1 5ebf521

@jreback
Copy link
Contributor

jreback commented Apr 4, 2015

can you rebase this?

@CoolRanch29
Copy link
Author

I'm pretty sure I just rebased. I'm sorry if this is causing a headache for you, I'm sure I'm doing some things stupidly. I've gotten a lot of benefit out of using pandas and so I'm trying to contribute but this is my first time contributing so I'm having to learn a lot about both the pandas code and github.

Copy link
Contributor

Choose a reason for hiding this comment

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

use

with tm.ensure_clean('test.txt') as path:
     with open(path,'w') as f:
          ....

@jreback
Copy link
Contributor

jreback commented Apr 5, 2015

couple of style things. pls add a release note in v0.16.1 as well.

mortada and others added 29 commits June 2, 2015 20:51
The docstring listed 'method' before 'value' which is not consistent
with the order of the arguments when calling the method.
Updated docs throughout DataFrame methods to mention
that axis can be set to 'index' or 'column' instead of 0 or 1
which improves readability significantly.
@jreback jreback closed this Jul 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions IO CSV read_csv, to_csv
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uin8 should be uint8 in io/parsers.py