-
Notifications
You must be signed in to change notification settings - Fork 16
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
New Grep Flag! #82
Comments
Aha… I bet you are talking about this example. That data is fiddly, because the header row appears after 6 rows of cruft. So in that example, I’m calling Maybe we need a flag on |
The epic hack would be:
i.e. parse csv without a header row, strip out the first 6 rows, render to csv, then parse again but this time stating there is a header row. Then do some operations and then render. This would behold! |
It is awesome that piping via csv three times works :) I think flagging the header row index on the original CSV parse is very plausibly useful... Part of me wants this to Just Do What I Mean (Leave headers in place, skip the blank rows, apply grep to the data from 7: )
Thoughts? |
But if you didn’t have that It might be a useful thing (your example is very appealing) but it’s just not clear how to execute it cleanly. UPDATE: Ok, actually… I think you might have nailed it, @davidmiller. Let me just have a go at implementing what you have here. UPDATE x2: the intuitive thing would be to specify the header row in the way you suggest, @davidmiller, and for it to then be pulled out and put to the top on render. The problem is that isn’t a streaming operation. |
Would this be helped if row indexes reflected current index not original index ... |
I see what you mean. At the moment, if a csv is imported with |
I think the whole header row stuff is causing us lots of problems :-) Perhaps worth standing back and just writing out the few specific things we want to enable. e.g.
If nothing we want to support requires the --header-row / --no-header-row stuff then we could just drop ... |
Sounds like a good suggestion. The way |
I think these operations are feasibly useful.
I think |
How about this option:
This example would then become:
it would be a streaming operation, and would play nicely with |
+1 |
kk awesome :) |
@andylolz sounds good. Could we spell out really clearly 2-3 pipeline examples that we need to support so we can check a proposed solution again those. I have stuff like
|
Sure! @rgrp do you have some examples of some really broken csv? I’m not sure where to look! |
The example on the homepage becomes:
…and would now have a header row.
I am assuming people wouldn’t want to
|
Render header row regardless of match status.
The text was updated successfully, but these errors were encountered: