Pandas Tutorial
Pandas Tutorial
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.
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
import pandas as pd
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)