0% found this document useful (0 votes)
5 views

Class 5-Python

Uploaded by

Nilanjana Das
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Class 5-Python

Uploaded by

Nilanjana Das
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

Dropping Rows

Dropping Columns
Adding new Columns
Modifying values in a Dataframe
Filtering rows in a Dataframe
More Pandas Functions

Mean Median Minimum Maximum


More Pandas Functions
Python Matplotlib

Matplotlib is a python library used for data visualization

You can create bar-plots,


scatter-plots, histograms
and a lot more with
matplotlib
Line Plot

Line charts are used to represent the relation between two data X and Y on a different axis.
Bar Plot
• It a graph that represents the category of data with rectangular bars with lengths and
heights that is proportional to the values which they represent.
• It describes the comparisons between the discrete categories.
• One of the axis represents the specific categories being compared, other axis
represents the measured values corresponding to those categories.
Histogram

A histogram is a graph showing frequency distributions.


It is a graph showing the number of observations within each given interval.
Scatter Plot

• Scatter plots are used to observe relationship between variables and uses dots to
represent the relationship between them.
• The scatter() method in the matplotlib library is used to draw a scatter plot.
Scatter plots are widely used to represent relation among variables and how
change in one affects the other.
Pie Chart

• A Pie Chart is a circular statistical plot that can display only one series of data.
• It illustrates data proportions using wedges within a circular layout. Each wedge's
area represents a percentage of the whole dataset.
• Commonly used in business presentations for summarizing categories like sales,
survey results, and resource allocation.
Python Seaborn

Seaborn is an amazing visualization library for statistical graphics plotting in Python. It is built on
the top of matplotlib library and also closely integrated into the data structures from pandas.

For Python Environment:


pip install seaborn
Seaborn Line Plot
Seaborn Line Plot

Grouping Data with “hue”


Seaborn Scatter Plot
Seaborn Histogram/Distplot
Seaborn JointPlot
Seaborn Box Plot
Seaborn Pair Plot

You might also like