Pandas is a data analaysis module. It provides you with high-performance, easy-to-use data structures and data analysis tools.
In this article you will learn how to read a csv file with Pandas.
Data Analysis in Python with Pandas
Read CSV with Python Pandas
We create a comma seperated value (csv) file:
Imported in excel that will look like this:
The data can be read using:
The first lines import the Pandas module. The read_csv method loads the data in a a Pandas dataframe that we named df.
A dataframe can be manipulated using methods, the minimum and maximum can easily be extracted:
The dataset in this example is very small, but a dataset can easily contain thousands or millions of records.