0% found this document useful (0 votes)
7 views18 pages

Help provided

Uploaded by

charmfor18
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views18 pages

Help provided

Uploaded by

charmfor18
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 18

Certificate

This is to certify that Charmi


Borah, a student of Class 12,
has successfully completed the
project titled Data Visualization
using Python in the subject
Informatics Practices for the
academic session 2024-2025
under my supervision.

Signature of Teacher:
Nabadit chouchan

school name :kandriya


vidyalaya
Acknowledgement
I would like to express my
gratitude to my Informatics
Practices teacher,Nabadit
chouchan , for their guidance
and continuous support
throughout the completion of
this project. I would also like to
thank my friends and family for
their assistance and
encouragement.
Introduction
Data visualization is an
essential part of data analysis,
allowing users to present data
in a graphical format that is
easy to understand. This
project demonstrates how
Python, through its libraries
like matplotlib, can be used to
create various types of
visualizations like line graphs,
bar charts, scatter plots, and
histograms. Visualization helps
in identifying patterns, trends,
and outliers in data, which are
crucial for data-driven
decision-making.
Project
Description
This project involves creating a
program that allows users to
input data and select the type
of graph they want to display.
The program uses the
matplotlib library to plot graphs
based on user input, making it
interactive and adaptable to
different data sets. The
available visualization options
include:

Ÿ Line Graph
Ÿ Bar Chart
Ÿ Scatter Plot
Ÿ Histogram
By allowing users to choose
the graph type, the project
highlights how different
visualizations can provide
unique insights into the same
data.

Methodology
1. Library Used:

This project primarily utilizes


matplotlib.pyplot for generating
visualizations. It is imported with
the alias pd for convenience in
code.

2. Input and Graph Selection:


The program prompts the user to
input values for the x-axis and y-
axis.

The user is then asked to select


the type of graph they want to
generate (options include line, bar,
scatter, and histogram).
3. Conditional Statements:
Based on the user’s selection, the
program generates the chosen
graph type using matplotlib.

Code
import matplotlib.pyplot as pd

# Taking input from the user


a = list(input("Enter x axis: "))
b = list(input("Enter y axis: "))
c = input("Which type of graph do you
need? Options available are: line, bar,
scatter, histogram ")

# Displaying the graph based on user


choice
if c == "line":
pd.plot(a, b)
pd.show()
elif c == "bar":
pd.bar(a, b)
pd.show()
elif c == "scatter":
pd.scatter(a, b)
pd.show()
elif c == "histogram":
pd.hist([a, b])
pd.show()
else:
print("Invalid graph type selected.")

Result/ Output
(Example)
Here's what the program does
when executed:

Input Example:
X-axis values: 1 2 3 4

Y-axis values: 10 15 25 30

Graph type: bar


Output Example:

The program displays a bar


chart with the specified x and y
values.

Depending on the user’s


choice, it could display a line,
scatter, or histogram as well.

Conclusion
This project demonstrates how
to use Python for data
visualization through simple
yet effective code. It provides a
practical way to learn about
data handling, conditional
statements, and visualization
using matplotlib. The
project emphasizes the
importance of visual
representations in
understanding and analyzing
data, making complex data
more accessible and
understandable.

References/
Bibliography

1. NCERT Textbook:
Informatics Practices for
Class XII

2. Matplotlib

3. Python

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy