Advertisements
Advertisements
Question
What are the other parameters that can be used with read_csv() function? You may explore from https:// pandas.pydata.org.
Short Answer
Advertisements
Solution
Some parameters used with read_csv() function are:
- sep – defines the separator used in the file.
- header – specifies the row containing column names.
- index_col – sets a column as index.
- usecols – reads selected columns only.
- skiprows – skips specified rows while reading.
- nrows – reads a fixed number of rows.
shaalaa.com
Is there an error in this question or solution?
