Introduction to Pandas Python

ArRosid
ArRosid
Nov 2 · 2 min read

In this story we will talk about pandas. What is Pandas?

Pandas is an open source, BSD-licensed library providing high-performance, easy-to-use data structures and data analysis tools for the Python programming language.

Pandas is widely use for data science. Let’s take an example

We have data about weather, and we got some question.

  • When the event is rain?
  • When is the highest temperature?
  • When is the lowest temperature?

Actually we can use excel to get the answer of that questions. But if our data is big, excel is not useful anymore. That’s why we need pandas python.

Let’s take a look how we can use pandas to get answer from that questions

Above we import pandas library and read the csv file.

Let’s get the answer of first question “When the event is rain?”

Very easy right? Let’s get the answer of second question

The first code is to get the highest value of temperature, and the second code is to get when the highest temperature happened.

Let’s get the answer of the last question

The code is similar with code to solve second question, we just replace max function to min.

Very easy right? I will keep this article simple, so you will not think that pandas is hard. Pandas is easy guys!!! I will write many story about pandas and show you how easy pandas is!

You can download/clone this code & csv file from my github https://github.com/ArRosid/learn-pandas-python

See you on the next stories!!!

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade