This is a regular “data quiz”. Follow it on LinkedIn. Test your knowledge or learn something new.

Today Question:

Which command loads a CSV into a DataFrame?

A) pd.open() 

B) pd.read_csv() 

C) pd.load() 

D) pd.get_csv()


Correct Answer: B

Explanation

The pd.read_csv() command in pandas loads a CSV file into a DataFrame, a table-like data structure. It supports parameters for delimiters, encoding, indexes, column types, and handling missing values. After loading, the data can be filtered, transformed, aggregated, or joined with other datasets. This command is a core step in data preparation, ETL workflows, and analytical pipelines in Python.