Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Bar and Scatter Plots | Aggregating and Visualizing Data
Data Manipulation using pandas

Bar and Scatter PlotsBar and Scatter Plots

There are other kinds of graphs pandas allows us to use for visualization. Among them are boxplots, bar plots, scatter plots, etc. To build a respective plot, apply the .plot() method to selected data, and set the kind parameter to plot type you want to build.

Possible values for the kind parameter are the following.

ValueKind of plot
bar or barhfor bar plots
histfor histogram
scatterfor scatter plots

For instance, to build a scatter plot you also need to set two parameters: x and y. Let's build a scatter plot of total income vs. dwelling price.

The same parameters must be set to build a bar plot. For instance, let's build a bar plot with address on the x-axis and total income on the y-axis for the first 20 dwellings.

Everything was clear?

Section 4. Chapter 7
course content

Course Content

Data Manipulation using pandas

Bar and Scatter PlotsBar and Scatter Plots

There are other kinds of graphs pandas allows us to use for visualization. Among them are boxplots, bar plots, scatter plots, etc. To build a respective plot, apply the .plot() method to selected data, and set the kind parameter to plot type you want to build.

Possible values for the kind parameter are the following.

ValueKind of plot
bar or barhfor bar plots
histfor histogram
scatterfor scatter plots

For instance, to build a scatter plot you also need to set two parameters: x and y. Let's build a scatter plot of total income vs. dwelling price.

The same parameters must be set to build a bar plot. For instance, let's build a bar plot with address on the x-axis and total income on the y-axis for the first 20 dwellings.

Everything was clear?

Section 4. Chapter 7
some-alt