Lecture 2.3
Lecture 2.3
Lecture - 8
DISCOVER . LEARN . EMPOWER
Data Visualization in Python
Python for Machine Learning
Course Objective:
The Course aims to: :
CO Will be covered in
Title
Number this lecture
Make students understand the structure, semantics
CO1 and syntax of Python programming Languages.
CO
Title Will be covered in
Number
this lecture
Understand Python programming language by
CO1
navigating software documentation
Development of Python programs using Numpy and
CO2
Pandas.
Visualization of Data Models using Matplotlib and
CO3 Seaborn.
CO4 Implement simple learning strategies using data
science principles.
# x-axis values
x = [5, 2, 9, 4, 7]
# Y-axis values
y = [10, 5, 8, 4, 2]
# Function to plot
plt.plot(x,y)
# x-axis values
x = [5, 2, 9, 4, 7]
# Y-axis values
y = [10, 5, 8, 4, 2]
# x-axis values
x = [5, 2, 9, 4, 7]
# Y-axis values
y = [10, 5, 8, 4, 2]
distplot histogram
barplot estimate of central tendency for a numeric variable
violinplot similar to boxplot, also shows the probability density of the data
jointplot Scatterplot
pairplot Pairplot
boxplot boxplot
swarmplot categorical scatterplot
factorplot General categorical plot
# Importing libraries
import numpy as np
import seaborn as sns
sns.set(style="dark")
fmri = sns.load_dataset("fmri")
sns.set(style="ticks")
• https://www.geeksforgeeks.org/python-introduction-matplo
tlib/
• https://seaborn.pydata.org/
• https://www.geeksforgeeks.org/introduction-to-seaborn-pyt
hon/
For queries
Email: [email protected]