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,210 points
220 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,300 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
6,575 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
301 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
13,262 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
2,071 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
1,338 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
129,935 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,300 points
10,357 views