csvkit: file formats
Sometimes you don't need pandas to handle csv files. Sometimes you'd just move data around and wrangle it without a jupyter notebook. During these times you might like to know about csvkit. You can do light analysis, but also exchange with fileformats and databases.
The following commands are run in this video;
in2csv pokemon.csv | head in2csv pokemon.csv | csvformat -D "|" | head in2csv pokemon.csv | csvformat -D "|" > pokemon.csv in2csv pokemon.csv | head | csvjson in2csv pokemon.csv | head | csvjson --indent 2 in2csv pokemon.csv | head | csvjson --key name --indent 2
Feedback? See an issue? Something unclear? Feel free to mention it here.
If you want to be kept up to date, consider signing up for the newsletter.