A

Admin • 802.91K Points
Coach

Q. How do you read a CSV file with no header row?

  • (A) pd.read_csv(file, header=None)
  • (B) pd.read_csv(file, headless=True)
  • (C) pd.read_csv(file, first_row=False)
  • (D) pd.read_csv(file, remove_header=True)
  • Correct Answer - Option(A)
  • Views: 4
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin
Use `header=None` to tell pandas that the CSV has no header row.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.