Reading Data from a File

Learn how to create a Pandas DataFrame from data in a file.

Reading data from a csv file

In most cases, we’ll read data from a file. The most commonly used file formats are csv, excel, parquet, and json. In this course, we’ll use csv files. The pandas read_csv function creates a DataFrame from a csv file. Pandas provides several other functions for reading data in files with different formats, such as read_json, read_parquet, read_excel, and so on.

Get hands-on with 1200+ tech skills courses.