Skip to content

Glossary: pandas Basics

read_csv

Also written: pd.read_csv, usecols, nrows, sep

Loads a CSV file into a DataFrame. `usecols=` keeps only some columns, `nrows=` reads only the first rows, and `sep=` sets a separator other than a comma.

Where the book teaches it

Related terms

CSVna_valuesparse_dates