Which Pandas function is used to read a CSV file into a DataFrame?

  • read_csv()
  • read_excel()
  • read_json()
  • read_sql()
The correct function to read a CSV file into a DataFrame in Pandas is read_csv(). It's used to load data from a CSV (Comma-Separated Values) file into a tabular data structure.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *