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.
Loading...
Related Quiz
- When designing a RESTful API, how should you handle versioning of the API?
- During data analysis, you are given a set of IDs from two different sources. You need to find IDs that are either in the first set or the second set but not in both. Which set operation will you apply?
- The lifetime of a variable is determined by its _______ in the code.
- What is the primary purpose of the HTTP OPTIONS method in RESTful APIs?
- How does a metaclass differ from a class in Python?