Skip to content
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

How can i skip specified line? #114

Open
nickhuangxinyu opened this issue Sep 15, 2020 · 1 comment
Open

How can i skip specified line? #114

nickhuangxinyu opened this issue Sep 15, 2020 · 1 comment

Comments

@nickhuangxinyu
Copy link

Hi, ben.

Great work! this helps me a lot.

I want to ask if there is method to skip some line which not have same format with others?

For example. assume i have file which looks like this:

price, size, ticker
100, 2, 000001
200, 2, 000100
price,size, ticker
300,3, 000400

when i want to use in.read_row, it always crash when read the second "price, size, ticker"
Is there any method to skip this?

Thanks a lot

@lperez5
Copy link

lperez5 commented Jun 22, 2022

I believe next_line() should work, currenlty trying this out aswell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants