Question: To plot in Pandas, we need to use the plot ( ) method and the Matplotlib library. The pyplot module from Matplotlib is also used

To plot in Pandas, we need to use the plot() method and the Matplotlib library. The pyplot module from Matplotlib is also used for plotting in Pandas. The pyplot.show() is used to display the figure.
Let us see an example:
Output:
Example: Histogram
We will create a Histogram here. Set the kind argument of the plot() method to hist. For this, we only need a single column. Let us see an example:
Output:
Exercise 1: Write your code to create a histogram with different items and values?
Your Code:
Output:
Example: Pie Chart
We will create a Pie Chart here. Use the plot.pie() method to draw a Pie Chart.
Output:
Exercise 2: Write your code to create a Pie chart with different items and values?
Code:
Output:
Example: Scatter Plot
We will create a Scatter Plot here. Set the kind argument of the plot() method to scatter. For this, we will also set the x-axis and y-axis. Let us see an example:
Output:
Exercise 3: Write your code to create a scatterplot with different items and values?
Code:
Output:
Example: Area Plot
We will create an Area Plot here. Use the plot.area() method to draw an Area Plot. Let us see an example. Let us see an example:
Output:
Exercise 4: Write your code to create a Area plot with different items and values?
Code:
Output:

Step by Step Solution

3.36 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The skin friction coefficient Cf for a laminar boundary ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!