Uploaded by Amogh Brahma R

Data Visualisation Lab Manual

advertisement
VISVESVARAYA TECHNOLOGICAL UNIVERSITY
Belgaum, Karnataka-590 014
DATA VISUALIZATION WITH PYTHON
Subject Code: BCS358D
(As per Visvesvaraya Technological University Syllabus)
B.E- 3rd Semester, Information Science and Engineering
Prepared by:
Prof. Usha Kumari V
Assistant Professor
Reviewed by:
Prof. Mary M Dsouza
Assistant Professor
Approved by:
Dr. Kala Venugopal
Head of Department Information Science and Engineering
ACHARYA INSTITUTE OF TECHNOLOGY
(Affiliated to VTU, Belgaum, Approved by AICTE, New Delhi and Govt. of Karnataka),
Acharya Dr. Sarvepalli Radhakrishnan Road, Bangalore-560107.
Ph. 91-080-28396011, 23723466, 28376431
URL: www.acharya.ac.in
2023-24
Table of contents
Vision, Mission, Motto of Institute
I
Vision, Mission of Department
II
Laboratory Objectives
III
Program Specific Outcomes (PSOs)
III
Program outcomes (POs)
IV
Course outcomes (COs)
VI
MOTTO
"Nurturing Aspirations Supporting Growth" VISION
“Acharya Institute of
Technology, committed to the cause of sustainable value-based education in all disciplines,
envisions itself as a global fountainhead of innovative human enterprise, with inspirational
initiatives for Academic Excellence”.
VISION OF THE INSTITUTE
Acharya Institute of Technology, committed to the cause of value-based education in all
disciplines, envisions itself as fountainhead of innovative human enterprise, with inspirational
initiatives for Academic Excellence.
MISSION OF INSTITUTE
“Acharya Institute of Technology strives to provide excellent academic ambiance to the students
for achieving global standards of technical education, foster intellectual and personal
development, meaningful research and ethical service to sustainable societal needs.”
VISION OF THE DEPARTMENT
“To be center of Academic and Research excellence in the field of Information Technology
inculcating value based education for the development of quality Human Resource”
MISSION OF THE DEPARTMENT
“Equip students with fundamental concepts, practical knowledge and professional ethics through
dedicated faculty for higher studies and professional career in various Scientific, Engineering and
Technological streams leading to proficiency in the field of Information Technology”
PROGRAM SPECIFIC OUTCOMES (PSOs)
PSO1: Able to apply knowledge of information management and communication systems to provide secured
solutions for real time engineering applications.
PSO2: Apply best software engineering practices, modern tools and technologies to deliver quality products.
PROGRAM OUTCOMES (Pos)
Engineering Graduates will be able to:
1. Engineering knowledge: Apply the knowledge of mathematics, science, engineering fundamentals, and an
engineering specialization to the solution of complex engineering problems.
2. Problem analysis: Identify, formulate, review research literature, and analyze complex engineering problems
reaching substantiated conclusions using first principles of mathematics, natural sciences, and engineering
sciences.
3. Design/development of solutions: Design solutions for complex engineering problems and design system
components or processes that meet the specified needs with appropriate consideration for the public health and
safety, and the cultural, societal, and environmental considerations.
4. Conduct investigations of complex problems: Use research-based knowledge and research methods
including design of experiments, analysis and interpretation of data, and synthesis of the information to provide
valid conclusions.
5. Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern engineering and
IT tools including prediction and modeling to complex engineering activities with an understanding of the
limitations.
6. The engineer and society: Apply reasoning informed by the contextual knowledge to assess societal, health,
safety, legal and cultural issues and the consequent responsibilities relevant to the professional engineering
practice.
7. Environment and sustainability: Understand the impact of the professional engineering solutions in societal
and environmental contexts, and demonstrate the knowledge of, and need for sustainable development.
8. Ethics: Apply ethical principles and commit to professional ethics and responsibilities and norms of the
engineering practice.
9. Individual and team work: Function effectively as an individual, and as a member or leader in diverse
teams, and in multidisciplinary settings.
10. Communication: Communicate effectively on complex engineering activities with the engineering
community and with society at large, such as, being able to comprehend and write effective reports and design
documentation, make effective presentations, and give and receive clear instructions.
11. Project management and finance: Demonstrate knowledge and understanding of the engineering and
management principles and apply these to one’s own work, as a member and leader in a team, to manage projects
and in multidisciplinary environments.
12. Life-long learning: Recognize the need for, and have the preparation and ability to engage in independent
and life-long learning in the broadest context of technological change.
Course Outcomes:
CO1 : Develop the simple programs using basics of Python programming construct.
CO2: Show the plotting and visualization of different graphs using Matplotlib,Plotly ,Bokeh and Seaborn
Course Outcomes-Program Outcomes mapping
Program Outcomes
COs
PO1
CO-1
3
PO2
1
CO-2
3
2
PO3 PO4
1
Program Specific
Outcomes
PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12
3
1
3
2
PSO1
PSO2
2
2
Rubrics for assessing student’s performance in Laboratory courses
The internals marks of lab for 2022 scheme is 15 Marks for Continuous Evaluation and 10 Marks for Lab Internals.
Continuous Evaluation for 2022 scheme:
Sl
No
Parameters
Mark
1. Writing Program/Logic 10
(present
week’s/previous
week’s)
2. Implementation in the 10
target language with
different inputs
Parameters
3. Record & Viva
10
10
4. Internal Assessment
20
10-8
7-5
4-2
The student is
able to write
the
program
without
any
logical
and
syntactical
error
and
proper
indentation is
followed.
Student is able
to
execute,
debug, and test
the program for
all
possible
inputs/test
cases.
The student is
able to write the
program with
minor
logical
error
The student has
written
incomplete
program with
major
logical
and syntactical
error
The student is
not attempted
to
write
program.
Student is able
to execute the
program,
but
fails to debug,
and test the
program for all
possible
inputs/test
cases.
7-5
Student
submitted the
record on time
but
not
documented
properly with all
possible
outputs
and
answered 60%
of questions.
Student
is
executed
the
program
partially(fails to
meet
desired
output)
The student
has
not
executed the
program.
4-2
Student failed to
submit
the
record on time
& answered for
40%
of
questions
in
Viva
1-0
The student
not submitted
the record &
fails
to
answer viva.
10-8
Student
submitted the
record on time
and
well
documented
with
all
possible output
and answered
80%
of
questions
1-0
Programming Assignments
SL.
NO
1
Name of Program
Page
No
a) Write a python program to find the best of two test average marks out of three test’s
marks accepted from the user.
09-10
b) Develop a Python program to check whether a given number is palindrome or not and
also count the number of occurrences of each digit in the input number.
2
a) Defined as a function F as Fn = Fn-1 + Fn-2. Write a Python program which accepts a
value for N (where N >0) as input and pass this value to the function. Display suitable
error message if the condition for input value is not followed.
11-12
b) Develop a python program to convert binary to decimal, octal to hexadecimal using
functions.
3
a) Write a Python program that accepts a sentence and find the number of words, digits,
uppercase letters and lowercase letters.
13-14
b) Write a Python program to find the string similarity between two given strings
Sample Output:
Sample Output:
Original string:
Original string:
Python Exercises
Python Exercises
Similarity between two said strings:
4
5
6
7
Python Exercises
Python Exercise
Similarity between two said strings: 1.0
0.967741935483871
a) Write a Python program to demonstrate how to Draw a Bar Plot using Matplotlib.
b) Write a Python program to demonstrate how to Draw a Scatter Plot using Matplotlib.
15-16
a) Write a Python program to demonstrate how to Draw a Histogram Plot using
Matplotlib.
b) Write a Python program to demonstrate how to Draw a Pie Chart using Matplotlib.
17-18
a) Write a Python program to illustrate Linear Plotting using Matplotlib.
b) Write a Python program to illustrate liner plotting with line formatting using
Matplotlib.
19-20
Write a Python program which explains uses of customizing seaborn plots with Aesthetic
functions.
8
Write a Python program to explain working with bokeh line graph using Annotations and
Legends.
a) Write a Python program for plotting different types of plots using Bokeh.
9
Write a Python program to draw 3D Plots using Plotly Libraries.
21-23
24-25
26
10
a) Write a Python program to draw Time Series using Plotly Libraries.
b) Write a Python program for creating Maps using Plotly Libraries.
27
DATA VISUALIZATION WITH PYTHON BCS358D
2023-24
LABORATORY PROGRAMS
1a. Write a python program to find the best of two test average marks out of three
test's marks accepted from the user.
Information Science & Engineering, AIT Bangalore
9
DATA VISUALIZATION WITH PYTHON BCS358D
2023-24
1b. Develop a Python program to check whether a given number is palindrome or not
and also count the number of occurrences of each digit in the input number.
Information Science & Engineering, AIT Bangalore
10
DATA VISUALIZATION WITH PYTHON BCS358D
2023-24
2a. Defined as a function F as Fn = Fn-1 + Fn-2. Write a Python program which accepts a
value for N (where N >0) as input and pass this value to the function. Display suitable error
message if the condition for input value is not followed.
Information Science & Engineering, AIT Bangalore
11
DATA VISUALIZATION WITH PYTHON BCS358D
2023-24
2b. Develop a python program to convert binary to decimal, octal to hexadecimal using
functions.
Information Science & Engineering, AIT Bangalore
12
DATA VISUALIZATION WITH PYTHON BCS358D
2023-24
3a. Write a Python program that accepts a sentence and find the number of words, digits,
uppercase letters and lowercase letters.
Information Science & Engineering, AIT Bangalore
13
DATA VISUALIZATION WITH PYTHON BCS358D
2023-24
3b. Write a Python program to find the string similarity between two given strings
Sample Output:
Sample Output:
Original string:
Original string:
Python Exercises
Python Exercises
Python Exercises
Python Exercise
Similarity between two said strings:
Similarity between two said strings:
1.0
0.967741935483871
Information Science & Engineering, AIT Bangalore
14
DATA VISUALIZATION WITH PYTHON BCS358D
2023-24
4a. Write a Python program to Demonstrate how to Draw a Bar Plot using Matplotlib.
Information Science & Engineering, AIT Bangalore
15
DATA VISUALIZATION WITH PYTHON BCS358D
2023-24
4b. Write a Python program to Demonstrate how to Draw a Scatter Plot using Matplotlib
Information Science & Engineering, AIT Bangalore
16
DATA VISUALIZATION WITH PYTHON BCS358D
2023-24
5a. Write a Python program to Demonstrate how to Draw a Histogram Plot using
Matplotlib.
Information Science & Engineering, AIT Bangalore
17
DATA VISUALIZATION WITH PYTHON BCS358D
2023-24
5b. Write a Python program to Demonstrate how to Draw a Pie Chart using Matplotlib.
Information Science & Engineering, AIT Bangalore
18
DATA VISUALIZATION WITH PYTHON BCS358D
2023-24
6a. Write a Python program to illustrate Linear Plotting using Matplotlib.
Information Science & Engineering, AIT Bangalore
19
DATA VISUALIZATION WITH PYTHON BCS358D
2023-24
6b. Write a Python program to illustrate liner plotting with line formatting using Matplotlib.
Information Science & Engineering, AIT Bangalore
20
DATA VISUALIZATION WITH PYTHON BCS358D
2023-24
7. Write a Python program which explains uses of customizing seaborn plots with Aesthetic
functions.
a. Join Plot
b. Hexagon distribution.
c. KDE Plot
Information Science & Engineering, AIT Bangalore
21
DATA VISUALIZATION WITH PYTHON BCS358D
2023-24
d. Heat Map
e. Pair Plot
f. Box Plot
Information Science & Engineering, AIT Bangalore
22
DATA VISUALIZATION WITH PYTHON BCS358D
2023-24
g. Regression Plot
h. Bar Plot
Information Science & Engineering, AIT Bangalore
23
DATA VISUALIZATION WITH PYTHON BCS358D
2023-24
8. Write a Python program to explain working with bokeh line graph using Annotations
and Legends.
Information Science & Engineering, AIT Bangalore
24
DATA VISUALIZATION WITH PYTHON BCS358D
2023-24
8a) Write a Python program for plotting different types of plots using Bokeh.
Information Science & Engineering, AIT Bangalore
25
DATA VISUALIZATION WITH PYTHON BCS358D
2023-24
9a. Write a Python program to draw 3D Plots using Plotly Libraries.
i)
Sine Wave
ii)
Scatter Plot
Information Science & Engineering, AIT Bangalore
26
DATA VISUALIZATION WITH PYTHON BCS358D
2023-24
10a. Write a Python program to draw Time Series using Plotly Libraries.
10b. Write a Python program for creating Maps using Plotly Libraries.
Information Science & Engineering, AIT Bangalore
27
Download