HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

csvpy — Load a CSV file into a Python shell. Included in csvkit. More information: <https://csvkit.readthedo

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandcsvpypythonloadclifileintocsv

Problem

How to use the csvpy command: Load a CSV file into a Python shell. Included in csvkit. More information: <https://csvkit.readthedocs.io/en/latest/scripts/csvpy.html>.

Solution

csvpy — Load a CSV file into a Python shell. Included in csvkit. More information: <https://csvkit.readthedocs.io/en/latest/scripts/csvpy.html>.

Load a CSV file into a CSVKitReader object:
csvpy {{data.csv}}


Load a CSV file into a CSVKitDictReader object:
csvpy --dict {{data.csv}}

Code Snippets

Load a CSV file into a `CSVKitReader` object

csvpy {{data.csv}}

Load a CSV file into a `CSVKitDictReader` object

csvpy --dict {{data.csv}}

Context

tldr-pages: common/csvpy

Revisions (0)

No revisions yet.