csvpy data.csv

Category: Data Science & Analysis

csvpy data.csv

Open a Python REPL with the CSV preloaded

csvpy launches an interactive Python session with the CSV already read into a variable named after the file, so data becomes a csvkit table object. You can then run Python expressions and csvkit methods against it directly. Exit with Ctrl+D to return to the shell. This is a quick bridge between CSV files and ad-hoc Python exploration.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.