English

What are the other parameters that can be used with read_csv() function? You may explore from https:// pandas.pydata.org.

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?
Chapter 2: Data Handling using Pandas - I - Intext Questions [Page 57]

APPEARS IN

NCERT Informatics Practices [English] Class 12
Chapter 2 Data Handling using Pandas - I
Intext Questions | Q 2. | Page 57
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×