CSV
comma-separated files
Reading csv
The most commonly used read function is read_csv
.There are a number of functions that convert text data into a DataFrame. Most of these functions have optional arguments that handle column names, missing values, datetime parsing, skipping rows, dealing with thousand separated comma's, and so on.
For instance, if you want to read a small number of rows you can specify that with nrows
Using the DataFrames to_csv
method, we can write the data out to a comma-separated file:
Last updated
Was this helpful?