Course Content
Data Manipulation using pandas
Data Manipulation using pandas
Other Types of Graphs
Let's learn the remaining types of plots that pandas
can build.
Value | Kind of plot |
---|---|
box | for boxplot |
kde or density | for density plots |
area | for area plots |
hexbin | for hexagonal bin plots |
pie | for pie plots |
What is a boxplot? A boxplot is a method of graphical representation of data minimum, quartiles, and maximum values. The lower side of rectangle is the first quartile (such a value that 25% of data is less than this value), the top side of rectangle is the third quartile (such a value that 75% of values is less than this value). Whiskers on a plot demonstates minimum and maximum. For instance, let's build a boxplot for the 'empinch'
column (represents total household employment income).
# Importing the library import pandas as pd # Reading the file df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/f2947b09-5f0d-4ad9-992f-ec0b87cd4b3f/data4.csv') # Scatter plot total income vs. dwelling price df.empinch.plot(kind = 'box')
These types are the most popular, but you will face the remaining ones while studying visualization libraries.
Thanks for your feedback!