0% encontró este documento útil (0 votos)
7 vistas6 páginas

Ejercicios Prácticos de Visualización de Datos

pandas datafrane

Cargado por

sahil.joshi20206
Derechos de autor
© All Rights Reserved
Nos tomamos en serio los derechos de los contenidos. Si sospechas que se trata de tu contenido, reclámalo aquí.
Formatos disponibles
Descarga como DOCX, PDF, TXT o lee en línea desde Scribd
0% encontró este documento útil (0 votos)
7 vistas6 páginas

Ejercicios Prácticos de Visualización de Datos

pandas datafrane

Cargado por

sahil.joshi20206
Derechos de autor
© All Rights Reserved
Nos tomamos en serio los derechos de los contenidos. Si sospechas que se trata de tu contenido, reclámalo aquí.
Formatos disponibles
Descarga como DOCX, PDF, TXT o lee en línea desde Scribd

DATA VISUALIZATION PRACTICAL QUESTIONS

SNO TOPIC SIGNATURE


21. Toyota has given his sales figures of his North and East Region for the 1st
quarter of the financial year 2020. Present the same in the form of bar graph.
Sales(North Region) Sales (East Region)
April 110 200
May 150 90
June 230 150
July 400 350
Write a program to represent the above given data as a dataframe (consider
month as indexes) and then print the graph. Put months as x axis and sales (of
both region) as y axis. Format the chart according to your wishes

22. Considering the dataframe created above, present the sales of the East region in
the form of horizontal bar graph in green color. Put months as x axis and sales as
y axis Give the title as "East Region Sales Month wise" in blue colour.
Put xlabel as "Sales" in red color and ylabel as "Month" also in red colour.
23. Number of mistakes done by 20 students in a maths objective test are as follows:
[7,10,2,1,15,4,0,3,0,8,3,4,12,12,0,0,18, 9,10,11] To know the class
performance in terms of how many students have done a particular
number of mistakes, draw a histogram with default number of bins. Make the
edge colour as black. Put the title as "Students Performance" and xlabel as
"Range of mistakes” and ylabel as "Number of students"
24. As per the data given in Q3. draw a histogram with the bins defined as
0–5
5 – 10
10 – 18
18 --20
Add edgecolor and proper title and label to your chart.

25. Write a program in Python Pandas to create the following DataFrame


“batsman” from a Dictionary. Draw line charts to show the plotting of score1
and score 2 for all batsman. Put legends and titles. Specify different colours and
line styles of your choice for both the plotted lines. Put the title and change the
color to green.
B_NO Name Score1 Score2 Location
1 Sunil Pillai 90 80 Delhi
2 Gaurav Sharma 65 45 Mumbai
3 Piyush Goel 70 90 Hyderabad
4 Kartik Thakur 80 76 Delhi
#21: Input-

Output-
#22: Input-

Output-
#23: Input-

Output-
#24: Input-

Output-
#25: Input-

Output-

También podría gustarte