How to draw BoxPlot in Python

0 votes

Hi Guys,

I am new in Python. I want to draw one BoxPlot with the help of Pandas DataFrame. Can anyone tell me how can I do that?

Jun 26, 2020 in Python by akhtar
• 38,260 points
979 views

1 answer to this question.

0 votes

Hi Guys,

You can use the plot function in Pandas. It helps you to plot any kind of graph. I have attached one example below for your reference. 

import pandas as pd
import numpy as np
df = pd.DataFrame(np.random.rand(10, 5), columns=['A', 'B', 'C', 'D', 'E'])
df.plot.box(grid='True')

I hope this will help you.

answered Jun 26, 2020 by MD
• 95,460 points

Related Questions In Python

0 votes
3 answers

How to draw a tic tac toe board in python?

def printTable():             for i in range(1,10):                     print(" ",end=' ')                     if(i%3==0 ...READ MORE

answered Oct 11, 2020 in Python by Sumit Nagpal
11,621 views
0 votes
1 answer

how to plot a boxplot in python using seaborn?

following is the syntax for a boxplot ...READ MORE

answered Aug 13, 2019 in Python by Mohammad
• 3,230 points
1,143 views
+3 votes
5 answers

How to read multiple data files in python

Firstly we will import pandas to read ...READ MORE

answered Apr 6, 2018 in Python by DeepCoder786
• 1,720 points
15,335 views
+4 votes
7 answers
0 votes
1 answer

How to create Pandas series from numpy array?

Hi. Refer to the below command: import pandas ...READ MORE

answered Apr 1, 2019 in Python by Pavan
3,523 views
0 votes
1 answer
0 votes
1 answer

How to create Pandas series from dictionary?

Here's a sample script: import pandas as pd import ...READ MORE

answered Apr 1, 2019 in Python by Prateek
2,340 views
0 votes
2 answers
+1 vote
3 answers

How to change/update cell value in Python Pandas dataframe?

You can use the at() method to ...READ MORE

answered Apr 8, 2019 in Python by Kunal
147,467 views
0 votes
1 answer

how to solve the error : "ImportError: No module named Tkinter" in python.

Hi@Umama, If you are using Linux system, then ...READ MORE

answered Apr 27, 2020 in Python by MD
• 95,460 points
13,526 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP