Skip to content

Conversation

@user32000
Copy link

Fix for #510 self.skiprows

Fix for blaze#510 self.skiprows
@necaris
Copy link
Contributor

necaris commented Dec 7, 2016

👍

@llllllllll
Copy link
Member

Thanks for getting a fix written so quickly! This looks great. To help ensure that we don't accidently break this again in the future could you add a test case?

The tests for the csv module are in odo/backends/tests/test_csv.py. A good example for a test would be something like test_pandas_read(). The imporant testing utility for csvs is with filetext('<csv-content>') as fn: which creates a temporary csv populated with some string. This will let you create an example case that shows off skipping some number of rows.

One side comment: do you think this should fail if you pass both header and skiprows?

@user32000
Copy link
Author

user32000 commented Dec 7, 2016 via email

@llllllllll
Copy link
Member

How's the test coming along? If you don't think you can get to it I can add a test and we can merge this.

@user32000
Copy link
Author

user32000 commented Dec 16, 2016 via email

@user32000
Copy link
Author

user32000 commented Dec 20, 2016 via email

@user32000
Copy link
Author

user32000 commented Dec 20, 2016 via email

@llllllllll
Copy link
Member

Thanks for working through this! If you have any questions as you go let me know, I may be able to help unblock you.

@user32000
Copy link
Author

user32000 commented Dec 29, 2016 via email

@user32000
Copy link
Author

user32000 commented Jan 3, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants