-
Notifications
You must be signed in to change notification settings - Fork 40
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
file with semi-colon and lines with different number of cols not work #124
Comments
Thanks for this. Since this package is based on
This is a pretty ragged (#79 ) csv. I would say that there is nothing that I could do that would make this look better that something like Here is one suggestion. I am assuming that you have some ability to modify the code on your embedded device. If that is true then modify the code to generate "tidy data". The general idea is shown in the image below. If you want more details here is the paper Let me know if this is useful. I would like to see |
Thank's very much for your answer, unfortunately, I can't change the format of these files cause IoT devices are not ours. I think about a solution that creates a table where the number of cols corresponds to the highest numbers of items in all lines of the document, but I understand if it's not possible. |
I think I see what you are saying. This goes back to (#79). My ability to make this happen depends on what I can get away with using rust-csv. This is a problem that needs a solution. |
That's better, but the perfect view for us is to have cols for the line "17/03/20-14:00:04;1901346120;146;146;147;6... ", maybe I can try while specifying the number of cols. Edit : I tested using the -n option and it still not working |
Sorry, the Here is another question about the data. Do you only need the rows that start with a date? If that is the case maybe we can grep those date lines only then pipe to |
It's a workaround thanks. |
And even a little nicer with headers: # make a new file with headers
cat <<EOF >test.csv
date;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25;26;27;28;29;30;31;32;33;34;35;36;37
EOF
# append header file with grepped data
grep "^17/03" your.csv >> test.csv | tv test.csv -s ";" |
Hi,
Your tools look awesome, unfortunately, I work with embedded devices that generate non-standard csv files, you can find a sample of the content below :
If I try to open them in tidy-view, then I ran this command :
An get this crash
The text was updated successfully, but these errors were encountered: