Data Visualization in Data
Science
Dr. D.Pradhan, COEP Technological University, Comp Dept
Dr.D.Pradhan,COEP Technological
University,Comp Dept
Dr.D.Pradhan,COEP Technological
University,Comp Dept
Dr.D.Pradhan,COEP Technological
University,Comp Dept
Dr.D.Pradhan,COEP Technological
University,Comp Dept
Dr.D.Pradhan,COEP Technological
University,Comp Dept
Dr.D.Pradhan,COEP Technological
University,Comp Dept
Dr.D.Pradhan,COEP Technological
University,Comp Dept
Dr.D.Pradhan,COEP Technological
University,Comp Dept
Dr.D.Pradhan,COEP Technological
University,Comp Dept
Dr.D.Pradhan,COEP Technological
University,Comp Dept
Dr.D.Pradhan,COEP Technological
University,Comp Dept
Dr.D.Pradhan,COEP Technological
University,Comp Dept
Dr.D.Pradhan,COEP Technological
University,Comp Dept
Dr.D.Pradhan,COEP Technological
University,Comp Dept
Dr.D.Pradhan,COEP Technological
University,Comp Dept
Dr.D.Pradhan,COEP Technological
University,Comp Dept
Stacked Bar Plot
A stacked Bar plot is a kind of bar graph in which each bar is
visually divided into sub bars to represent multiple column data at
once. To plot the Stacked Bar plot we need to specify stacked=True
in the plot method. We can also pass the list of colors as we needed
to color each sub bar in a bar.
Dr.D.Pradhan,COEP Technological
University,Comp Dept
Parallel coordinates plot
It is a common way of visualizing and analyzing high-dimensional
datasets. A point in n-dimensional space is represented as a polyline
with vertices on the parallel axes and the position of the vertex
corresponds to the coordinate of the point
Syntax:
parallel_coordinates(data_frame=None,
dimensions=None, labels={},
range_color=None)
import plotly.express as px
df = px.data.tips()
fig = px.parallel_coordinates( df, dimensions=['tip',
'total_bill', 'day','time'],)
fig.show()
Dr.D.Pradhan,COEP Technological
University,Comp Dept
Log-Log Plot
loglog() function of Matplotlib.pyplot.
It is used to plot a log scale over both x and y-
axis.
Syntax:
loglog(X,Y)
Where,
X and Y refer to x and y coordinates
respectively.
Other function used is linespace ().
It returns evenly spaced numbers over a
specified interval
Dr.D.Pradhan,COEP Technological
University,Comp Dept
Dr.D.Pradhan,COEP Technological
University,Comp Dept