Skip to content

Changed uin8 to uint8 in response to issue #9266 #9350

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

Closed
wants to merge 239 commits into from
Closed

Changed uin8 to uint8 in response to issue #9266 #9350

wants to merge 239 commits into from

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?

with open('test.txt','w') as f:
f.write(
"""1421302964.213420 PRI=3 PGN=0xef00 DST=0x17 SRC=0x28 04 154 00 00 00 00 00 127
1421302964.226776 PRI=6 PGN=0xf002 SRC=0x47 243 00 00 255 247 00 00 71"""
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().

@@ -209,4 +209,9 @@ Bug Fixes
- Fixed issue in the ``xlsxwriter`` engine where it added a default 'General' format to cells if no other format wass applied. This prevented other row or column formatting being applied. (:issue:`9167`)
- Fixes issue with ``index_col=False`` when ``usecols`` is also specified in ``read_csv``. (:issue:`9082`)
- Bug where ``wide_to_long`` would modify the input stubnames list (:issue:`9204`)
<<<<<<< HEAD

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.

@@ -2984,6 +2984,28 @@ def test_variable_width_unicode(self):
tm.assert_frame_equal(expected, read_fwf(BytesIO(test.encode('utf8')),
header=None, encoding='utf8'))

def test_convert_to_nd_arrays(self):
#GH 9266
with open('test.txt','w') as f:
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