0% found this document useful (0 votes)
50 views

Pandas Tutorial

Pandas is a Python library used for working with datasets and analyzing data. It allows users to clean messy datasets, derive insights from data through statistical analysis, and get answers about data like correlations, averages, maximums, and minimums. Pandas is commonly imported using the alias "pd" to simplify referring to it as pd instead of pandas.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views

Pandas Tutorial

Pandas is a Python library used for working with datasets and analyzing data. It allows users to clean messy datasets, derive insights from data through statistical analysis, and get answers about data like correlations, averages, maximums, and minimums. Pandas is commonly imported using the alias "pd" to simplify referring to it as pd instead of pandas.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Pandas 

Tutorial
 Pandas is a Python library. Pandas is used to analyze data.
 Pandas is a Python library used for working with data sets.
 It has functions for analyzing, cleaning, exploring, and manipulating data.
 The name "Pandas" has a reference to both "Panel Data", and "Python Data Analysis"
and was created by Wes McKinney in 2008.
 Pandas allows us to analyze big data and make conclusions based on statistical theories.
 Pandas can clean messy data sets, and make them readable and relevant.

What Can Pandas Do?

Pandas gives you answers about the data. Like:

 Is there a correlation between two or more columns?


 What is average value?
 Max value?
 Min value?

Pandas are also able to delete rows that are not relevant, or contains wrong values, like empty or
NULL values. This is called cleaning the data.

Pandas as pd

 Pandas is usually imported under the pd alias.


 alias: In Python alias are an alternate name for referring to the same thing.
 Create an alias with the as keyword while importing:

import pandas as pd

 Now the Pandas package can be referred to as pd instead of pandas.

Example
import pandas as pd

mydataset = {
  'cars': ["BMW", "Volvo", "Ford"],
  'passings': [3, 7, 2]
}
myvar = pd.DataFrame(mydataset)

print(myvar)

Example 2
import pandas as pd

mydataset2 = {
  'student': ["Praveen”, "Ved", "Ratnesh"],
  'marks': [10, 20, 30]
}

myvar = pd.DataFrame(mydataset2)

print(myvar)

You might also like