Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
SlideShare a Scribd company logo
Data Science With Python | Python For Data Science | Python Data Science Course | Simplilearn
What’s in it for you?
What is Data Science?
Basics of Python for Data Analysis
Why learn Python?
How to Install Python?
Python Libraries for Data Analysis
Exploratory analysis using Pandas
Introduction to series and data frame
Loan Prediction Problem
Data Wrangling using Pandas
Building a Predictive Model using Scikit-Learn
Logistic Regression
What is Data Science?
Example
Restaurants can predict how many
customers will visit on a weekend
and plan their food inventory to
handle the demand
Service Planning
System can be trained based on
customer behavior pattern to
predict the likelihood of a
customer buying a product
Customer Prediction
Data Science is about finding and exploring data in real world, and then using that knowledge to solve
business problems
Why Python?
Let’s first understand, why we
want to use Python?
Why Python?
The usage statistics based on google trends depict that Python is currently more popular than R or SAS
for Data Science!
Why Python?
SPEED PACKAGES DESIGN GOAL
But, there are various factors you should consider before deciding which language is best for
your Data Analysis:
Why Python?
SPEED PACKAGES DESIGN GOAL
But, there are various factors you should consider before deciding which language is best for
your Data Analysis:
Why Python?
SPEED PACKAGES DESIGN GOAL
But, there are various factors you should consider before deciding which language is best for
your Data Analysis:
Why Python?
For instructor
Design Goal:
Syntax rules in python helps in building application with concise and readable code base
Packages:
There are numerous packages in Python to choose from like pandas to aggregate & manipulate data, Seaborn or
matplotlib to visualize relational data to mention a few
Speed:
Studies suggest that Python is faster than several widely used languages. Also, we can further speed up python
using algorithms and tools
Installing Python
Now, let’s install Python to
begin the fun
Installing Python
• Go to: http://continuum io/downloads
• Scroll down to download the graphical installer
suitable for your operating system
After successful installation, you can launch Jupyter notebook from Anaconda Navigator
Anaconda comes with pre-installed libraries
In this tutorial, we will be working on Jupyter notebook using Python 3
Python libraries for Data Analysis
Let’s get to know some
important Python libraries for
Data Analysis
Python libraries for Data Analysis
There are many interesting libraries that have made Python popular with Data Scientists:
Python libraries for Data Analysis
Most useful library for variety of high level science and engineering modules like discrete Fourier
transform, Linear Algebra, Optimization and Sparse matrices
Pandas for structured data operations and manipulations It is extensively
used for data munging and preparation
The most powerful feature of NumPy is n-dimensional array This library also contains basic linear algebra
functions, Fourier transforms, advanced random number capabilities
Matplotlib for plotting vast variety of graphs, starting from histograms to line plots to heat plots
contains a lot of efficient tools for machine learning and statistical modeling including classification,
regression, clustering and dimensional reduction
For instructor
Python libraries for Data Analysis
Additional libraries, you might need:
Networkx & I graph
Tensorflow
BeautifulSoup
OS
Python libraries for Data Analysis
os for Operating system and file operations
networkx and igraph for graph based data manipulations
TensorFlow
BeautifulSoup for scrapping web
For instructor
What is SciPy?
SciPy is a set of scientific and numerical tools for Python
• It currently supports special functions, integration, ordinary
differential equation (ODE) solvers, gradient optimization, and
others
• It has fully-featured versions of the linear algebra modules
• It is built on top of NumPy
What is NumPy?
NumPy is the fundamental package for scientific computing with
Python. It contains:
• Powerful N-dimensional array object
• Tools for integrating C/C++ and Fortran code
• It has useful linear algebra, Fourier transform, and random number
capabilities
What is Pandas?
• The most useful Data Analysis library in Python
• Instrumental in increasing the use of Python in Data Science
community
• It is extensively used for data munging and preparation
Pandas is used for structured data operations & manipulations
Exploratory analysis using Pandas
Let’s understand the two most common terms used in Pandas:
Series Dataframe
Exploratory analysis using Pandas
A Series is a one-dimensional object that can
hold any data type such as integers, floats
and strings
Series
A DataFrame is a two dimensional object
that can have columns with potential
different data types
DataFrame
Pandas
Exploratory analysis using Pandas
Default column
names
Default index
Default index
Series DataFrame
Exploratory analysis using Pandas
Default column
names
Default index
Default index
Series DataFrame
Exploratory analysis using Pandas
Problem Statement: Based on customer data, predict whether a particular customer’s loan
will be approved or not
LOAN
Exploratory analysis using Pandas
Now, let’s explore our data using Pandas!
Exploratory analysis using Pandas
Import the necessary libraries and read the dataset using read_csv() function:
Exploratory analysis using Pandas
You can call describe() function to describe all the columns:
Exploratory analysis using Pandas
Let’s see numercial values’ distribution
1 Loan Amount
Exploratory analysis using Pandas
2 Applicant Income
Exploratory analysis using Pandas
Categorical values’ distribution using matplotlib library:
Credit History
Exploratory analysis using Pandas
Hence, ‘loanAmount’ and ‘ApplicantIncome’ needs
Data Wrangling as some extreme values are observed!
Data Wrangling using Pandas
Before proceeding further,
let’s understand what is
Data Wrangling and why we
need it?
Data Wrangling: Process of cleaning and unifying messy
and complex data sets
It reveals more information about your data
Enables decision-making skills in the organization
Helps to gather meaningful and precise data for the business
Data Wrangling using Pandas
Data Wrangling using Pandas
You can see if your data has missing values:
Data Wrangling using Pandas
And then you can replace the missing values:
Data Wrangling using Pandas
You can access the data types of each column in a DataFrame:
Data Wrangling using Pandas
You can perform basic math operations to know more about your data:
Data Wrangling using Pandas
You can combine your DataFrames:
Combining DataFrame objects can be done using simple concatenation (provided they have the same columns):
Creates an array of
specified shape and fills it
with random values using
numpy
Data Wrangling using Pandas
Data Wrangling using Pandas
Also, if your DataFrame do not have an identical structure:
Data Wrangling using Pandas
You can create a merged dataframe using the merge() function based on the key:
Model Building using Scikit-learn
Now, that we have done data
wrangling, let’s build a
predictive model
Model Building using Scikit-learn
We will use Scikit-learn
module as it provides a range
of supervised and
unsupervised learning
algorithms
Model Building using Scikit-learn
Importing the required scikit-learn module:
Model Building using Scikit-learn
Extracting the variables and then splitting the data into train and test:
Model Building using Scikit-learn
In this case, we will use Logistic
Regression model
Logistic Regression is appropriate
when the dependent variable is
binary
Model Building using Scikit-learn
Fitting the data into Logistic Regression model:
Model Building using Scikit-learn
Predicting the test results:
Model Building using Scikit-learn
To describe the performance of the model let’s build the confusion matrix on test data:
Model Building using Scikit-learn
Let’s calculate ACCURACY and PRECISION from confusion matrix:
False Positive
True Positive
False Negative
True Negative
Model Building using Scikit-learn
Let’s calculate ACCURACY and PRECISION from confusion matrix:
• Accuracy
Overall, how often is the classifier correct?
(TP+TN)/total = (103+18)/150 = 0.80
• Precision
When it predicts yes, how often is it correct?
TP/predicted yes = 103/130 = 0.79
Model Building using Scikit-learn
We can also find the accuracy through Python module:
Model Building using Scikit-learn
So , we have built a model with 80% accuracy
Summary
Data Science & its popularity with python Data Analysis Libraries in python Series and dataframe in pandas
Logistic Regression using scikitData wranglingExploratory analysis
Data Science With Python | Python For Data Science | Python Data Science Course | Simplilearn

More Related Content

What's hot (20)

Python for Data Science | Python Data Science Tutorial | Data Science Certifi...
Python for Data Science | Python Data Science Tutorial | Data Science Certifi...Python for Data Science | Python Data Science Tutorial | Data Science Certifi...
Python for Data Science | Python Data Science Tutorial | Data Science Certifi...
Edureka!
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
Edureka!
 
Introduction of Data Science
Introduction of Data ScienceIntroduction of Data Science
Introduction of Data Science
Jason Geng
 
Data visualization in Python
Data visualization in PythonData visualization in Python
Data visualization in Python
Marc Garcia
 
Python - Numpy/Pandas/Matplot Machine Learning Libraries
Python - Numpy/Pandas/Matplot Machine Learning LibrariesPython - Numpy/Pandas/Matplot Machine Learning Libraries
Python - Numpy/Pandas/Matplot Machine Learning Libraries
Andrew Ferlitsch
 
Data science
Data science Data science
Data science
SouravSadhukhan6
 
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Learn Python Programming | Python Programming - Step by Step | Python for Beg...Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Edureka!
 
Introduction to data science
Introduction to data scienceIntroduction to data science
Introduction to data science
Sampath Kumar
 
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...
Edureka!
 
Introduction To Data Science
Introduction To Data ScienceIntroduction To Data Science
Introduction To Data Science
Spotle.ai
 
Data Science Training | Data Science Tutorial for Beginners | Data Science wi...
Data Science Training | Data Science Tutorial for Beginners | Data Science wi...Data Science Training | Data Science Tutorial for Beginners | Data Science wi...
Data Science Training | Data Science Tutorial for Beginners | Data Science wi...
Edureka!
 
Python Basics | Python Tutorial | Edureka
Python Basics | Python Tutorial | EdurekaPython Basics | Python Tutorial | Edureka
Python Basics | Python Tutorial | Edureka
Edureka!
 
Data Visualization in Python
Data Visualization in PythonData Visualization in Python
Data Visualization in Python
Jagriti Goswami
 
Data visualization
Data visualizationData visualization
Data visualization
Moushmi Dasgupta
 
Data Analysis and Visualization using Python
Data Analysis and Visualization using PythonData Analysis and Visualization using Python
Data Analysis and Visualization using Python
Chariza Pladin
 
Introduction to Data Science and Analytics
Introduction to Data Science and AnalyticsIntroduction to Data Science and Analytics
Introduction to Data Science and Analytics
Srinath Perera
 
Introduction to Data Analytics
Introduction to Data AnalyticsIntroduction to Data Analytics
Introduction to Data Analytics
Dr. C.V. Suresh Babu
 
Python Anaconda Tutorial | Edureka
Python Anaconda Tutorial | EdurekaPython Anaconda Tutorial | Edureka
Python Anaconda Tutorial | Edureka
Edureka!
 
Machine Learning Course | Edureka
Machine Learning Course | EdurekaMachine Learning Course | Edureka
Machine Learning Course | Edureka
Edureka!
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Edureka!
 
Python for Data Science | Python Data Science Tutorial | Data Science Certifi...
Python for Data Science | Python Data Science Tutorial | Data Science Certifi...Python for Data Science | Python Data Science Tutorial | Data Science Certifi...
Python for Data Science | Python Data Science Tutorial | Data Science Certifi...
Edureka!
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
Edureka!
 
Introduction of Data Science
Introduction of Data ScienceIntroduction of Data Science
Introduction of Data Science
Jason Geng
 
Data visualization in Python
Data visualization in PythonData visualization in Python
Data visualization in Python
Marc Garcia
 
Python - Numpy/Pandas/Matplot Machine Learning Libraries
Python - Numpy/Pandas/Matplot Machine Learning LibrariesPython - Numpy/Pandas/Matplot Machine Learning Libraries
Python - Numpy/Pandas/Matplot Machine Learning Libraries
Andrew Ferlitsch
 
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Learn Python Programming | Python Programming - Step by Step | Python for Beg...Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Edureka!
 
Introduction to data science
Introduction to data scienceIntroduction to data science
Introduction to data science
Sampath Kumar
 
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...
Edureka!
 
Introduction To Data Science
Introduction To Data ScienceIntroduction To Data Science
Introduction To Data Science
Spotle.ai
 
Data Science Training | Data Science Tutorial for Beginners | Data Science wi...
Data Science Training | Data Science Tutorial for Beginners | Data Science wi...Data Science Training | Data Science Tutorial for Beginners | Data Science wi...
Data Science Training | Data Science Tutorial for Beginners | Data Science wi...
Edureka!
 
Python Basics | Python Tutorial | Edureka
Python Basics | Python Tutorial | EdurekaPython Basics | Python Tutorial | Edureka
Python Basics | Python Tutorial | Edureka
Edureka!
 
Data Visualization in Python
Data Visualization in PythonData Visualization in Python
Data Visualization in Python
Jagriti Goswami
 
Data Analysis and Visualization using Python
Data Analysis and Visualization using PythonData Analysis and Visualization using Python
Data Analysis and Visualization using Python
Chariza Pladin
 
Introduction to Data Science and Analytics
Introduction to Data Science and AnalyticsIntroduction to Data Science and Analytics
Introduction to Data Science and Analytics
Srinath Perera
 
Python Anaconda Tutorial | Edureka
Python Anaconda Tutorial | EdurekaPython Anaconda Tutorial | Edureka
Python Anaconda Tutorial | Edureka
Edureka!
 
Machine Learning Course | Edureka
Machine Learning Course | EdurekaMachine Learning Course | Edureka
Machine Learning Course | Edureka
Edureka!
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Edureka!
 

Similar to Data Science With Python | Python For Data Science | Python Data Science Course | Simplilearn (20)

Python ml
Python mlPython ml
Python ml
Shubham Sharma
 
Data Analytics with Python: A Comprehensive Approach - CETPA Infotech
Data Analytics with Python: A Comprehensive Approach - CETPA InfotechData Analytics with Python: A Comprehensive Approach - CETPA Infotech
Data Analytics with Python: A Comprehensive Approach - CETPA Infotech
Cetpa Infotech Pvt Ltd
 
Basic of python for data analysis
Basic of python for data analysisBasic of python for data analysis
Basic of python for data analysis
Pramod Toraskar
 
Adarsh_Masekar(2GP19CS003).pptx
Adarsh_Masekar(2GP19CS003).pptxAdarsh_Masekar(2GP19CS003).pptx
Adarsh_Masekar(2GP19CS003).pptx
hkabir55
 
Python and data analytics
Python and data analyticsPython and data analytics
Python and data analytics
Shree M.L.Kakadiya MCA mahila college, Amreli
 
Abhishek Training PPT.pptx
Abhishek Training PPT.pptxAbhishek Training PPT.pptx
Abhishek Training PPT.pptx
KashishKashish22
 
Certified Python Business Analyst
Certified Python Business AnalystCertified Python Business Analyst
Certified Python Business Analyst
AnkitSingh2134
 
Session 2
Session 2Session 2
Session 2
HarithaAshok3
 
Building Your First AI Program in Python ashokveda.com.pdf
Building Your First AI Program in Python ashokveda.com.pdfBuilding Your First AI Program in Python ashokveda.com.pdf
Building Your First AI Program in Python ashokveda.com.pdf
df2608021
 
employee turnover prediction document.docx
employee turnover prediction document.docxemployee turnover prediction document.docx
employee turnover prediction document.docx
rohithprabhas1
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
Ramiro Aduviri Velasco
 
-python-for-data-science-20240911071905Ss8z.pdf
-python-for-data-science-20240911071905Ss8z.pdf-python-for-data-science-20240911071905Ss8z.pdf
-python-for-data-science-20240911071905Ss8z.pdf
abhishekprasadabhima
 
Scipy Libraries to Work with Various Datasets.pptx
Scipy Libraries to Work with Various Datasets.pptxScipy Libraries to Work with Various Datasets.pptx
Scipy Libraries to Work with Various Datasets.pptx
removed_afc8cfaebdc497d667935c4934da4309
 
Python for Data Science: A Comprehensive Guide
Python for Data Science: A Comprehensive GuidePython for Data Science: A Comprehensive Guide
Python for Data Science: A Comprehensive Guide
priyanka rajput
 
Pa2 session 4
Pa2 session 4Pa2 session 4
Pa2 session 4
aiclub_slides
 
How can I create an AI model through a given dataset? 2.pdf ~ aaryan kansari
How can I create an AI model through a given dataset? 2.pdf ~ aaryan kansariHow can I create an AI model through a given dataset? 2.pdf ~ aaryan kansari
How can I create an AI model through a given dataset? 2.pdf ~ aaryan kansari
25xx6pjt62
 
Data science presentation
Data science presentationData science presentation
Data science presentation
MSDEVMTL
 
python-for-advanced-data-science-techniques-and-best-practices-20240911071850...
python-for-advanced-data-science-techniques-and-best-practices-20240911071850...python-for-advanced-data-science-techniques-and-best-practices-20240911071850...
python-for-advanced-data-science-techniques-and-best-practices-20240911071850...
abhishekprasadabhima
 
Data Science with Python course Outline.pptx
Data Science with Python course Outline.pptxData Science with Python course Outline.pptx
Data Science with Python course Outline.pptx
Ferdsilinks
 
Unlocking the Power of Python in Data Analytics
Unlocking the Power of Python in Data AnalyticsUnlocking the Power of Python in Data Analytics
Unlocking the Power of Python in Data Analytics
pallavichauhan2525
 
Data Analytics with Python: A Comprehensive Approach - CETPA Infotech
Data Analytics with Python: A Comprehensive Approach - CETPA InfotechData Analytics with Python: A Comprehensive Approach - CETPA Infotech
Data Analytics with Python: A Comprehensive Approach - CETPA Infotech
Cetpa Infotech Pvt Ltd
 
Basic of python for data analysis
Basic of python for data analysisBasic of python for data analysis
Basic of python for data analysis
Pramod Toraskar
 
Adarsh_Masekar(2GP19CS003).pptx
Adarsh_Masekar(2GP19CS003).pptxAdarsh_Masekar(2GP19CS003).pptx
Adarsh_Masekar(2GP19CS003).pptx
hkabir55
 
Abhishek Training PPT.pptx
Abhishek Training PPT.pptxAbhishek Training PPT.pptx
Abhishek Training PPT.pptx
KashishKashish22
 
Certified Python Business Analyst
Certified Python Business AnalystCertified Python Business Analyst
Certified Python Business Analyst
AnkitSingh2134
 
Building Your First AI Program in Python ashokveda.com.pdf
Building Your First AI Program in Python ashokveda.com.pdfBuilding Your First AI Program in Python ashokveda.com.pdf
Building Your First AI Program in Python ashokveda.com.pdf
df2608021
 
employee turnover prediction document.docx
employee turnover prediction document.docxemployee turnover prediction document.docx
employee turnover prediction document.docx
rohithprabhas1
 
-python-for-data-science-20240911071905Ss8z.pdf
-python-for-data-science-20240911071905Ss8z.pdf-python-for-data-science-20240911071905Ss8z.pdf
-python-for-data-science-20240911071905Ss8z.pdf
abhishekprasadabhima
 
Python for Data Science: A Comprehensive Guide
Python for Data Science: A Comprehensive GuidePython for Data Science: A Comprehensive Guide
Python for Data Science: A Comprehensive Guide
priyanka rajput
 
How can I create an AI model through a given dataset? 2.pdf ~ aaryan kansari
How can I create an AI model through a given dataset? 2.pdf ~ aaryan kansariHow can I create an AI model through a given dataset? 2.pdf ~ aaryan kansari
How can I create an AI model through a given dataset? 2.pdf ~ aaryan kansari
25xx6pjt62
 
Data science presentation
Data science presentationData science presentation
Data science presentation
MSDEVMTL
 
python-for-advanced-data-science-techniques-and-best-practices-20240911071850...
python-for-advanced-data-science-techniques-and-best-practices-20240911071850...python-for-advanced-data-science-techniques-and-best-practices-20240911071850...
python-for-advanced-data-science-techniques-and-best-practices-20240911071850...
abhishekprasadabhima
 
Data Science with Python course Outline.pptx
Data Science with Python course Outline.pptxData Science with Python course Outline.pptx
Data Science with Python course Outline.pptx
Ferdsilinks
 
Unlocking the Power of Python in Data Analytics
Unlocking the Power of Python in Data AnalyticsUnlocking the Power of Python in Data Analytics
Unlocking the Power of Python in Data Analytics
pallavichauhan2525
 

More from Simplilearn (20)

Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...
Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...
Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...
Simplilearn
 
Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...
Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...
Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...
Simplilearn
 
Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...
Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...
Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...
Simplilearn
 
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
Simplilearn
 
SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...
SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...
SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...
Simplilearn
 
How To Start Influencer Marketing Business | Influencer Marketing For Beginne...
How To Start Influencer Marketing Business | Influencer Marketing For Beginne...How To Start Influencer Marketing Business | Influencer Marketing For Beginne...
How To Start Influencer Marketing Business | Influencer Marketing For Beginne...
Simplilearn
 
Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...
Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...
Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...
Simplilearn
 
How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...
How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...
How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...
Simplilearn
 
What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...
What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...
What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...
Simplilearn
 
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Simplilearn
 
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Simplilearn
 
Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...
Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...
Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...
Simplilearn
 
Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...
Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...
Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...
Simplilearn
 
Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...
Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...
Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...
Simplilearn
 
AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...
AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...
AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...
Simplilearn
 
Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...
Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...
Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...
Simplilearn
 
Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...
Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...
Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...
Simplilearn
 
Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...
Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...
Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...
Simplilearn
 
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Simplilearn
 
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Simplilearn
 
Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...
Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...
Top 50 Scrum Master Interview Questions | Scrum Master Interview Questions & ...
Simplilearn
 
Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...
Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...
Bagging Vs Boosting In Machine Learning | Ensemble Learning In Machine Learni...
Simplilearn
 
Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...
Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...
Future Of Social Media | Social Media Trends and Strategies 2025 | Instagram ...
Simplilearn
 
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
SQL Query Optimization | SQL Query Optimization Techniques | SQL Basics | SQL...
Simplilearn
 
SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...
SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...
SQL INterview Questions .pTop 45 SQL Interview Questions And Answers In 2025 ...
Simplilearn
 
How To Start Influencer Marketing Business | Influencer Marketing For Beginne...
How To Start Influencer Marketing Business | Influencer Marketing For Beginne...How To Start Influencer Marketing Business | Influencer Marketing For Beginne...
How To Start Influencer Marketing Business | Influencer Marketing For Beginne...
Simplilearn
 
Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...
Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...
Cyber Security Roadmap 2025 | How To Become Cyber Security Engineer In 2025 |...
Simplilearn
 
How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...
How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...
How To Become An AI And ML Engineer In 2025 | AI Engineer Roadmap | AI ML Car...
Simplilearn
 
What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...
What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...
What Is GitHub Copilot? | How To Use GitHub Copilot? | How does GitHub Copilo...
Simplilearn
 
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Simplilearn
 
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Simplilearn
 
Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...
Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...
Top 7 High Paying AI Certifications Courses For 2025 | Best AI Certifications...
Simplilearn
 
Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...
Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...
Data Cleaning In Data Mining | Step by Step Data Cleaning Process | Data Clea...
Simplilearn
 
Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...
Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...
Top 10 Data Analyst Projects For 2025 | Data Analyst Projects | Data Analysis...
Simplilearn
 
AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...
AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...
AI Engineer Roadmap 2025 | AI Engineer Roadmap For Beginners | AI Engineer Ca...
Simplilearn
 
Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...
Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...
Machine Learning Roadmap 2025 | Machine Learning Engineer Roadmap For Beginne...
Simplilearn
 
Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...
Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...
Kotter's 8-Step Change Model Explained | Kotter's Change Management Model | S...
Simplilearn
 
Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...
Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...
Gen AI Engineer Roadmap For 2025 | How To Become Gen AI Engineer In 2025 | Si...
Simplilearn
 
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Top 10 Data Analyst Certification For 2025 | Best Data Analyst Certification ...
Simplilearn
 
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Complete Data Science Roadmap For 2025 | Data Scientist Roadmap For Beginners...
Simplilearn
 

Recently uploaded (20)

601 New Venture Creation And Start-Ups Unit-1
601 New Venture Creation And Start-Ups Unit-1601 New Venture Creation And Start-Ups Unit-1
601 New Venture Creation And Start-Ups Unit-1
MAYURI LONDHE
 
Some Common Errors that Generative AI Produces
Some Common Errors that Generative AI ProducesSome Common Errors that Generative AI Produces
Some Common Errors that Generative AI Produces
Damian T. Gordon
 
Diode Demystified: From Ideal Assumptions to Specialty Applications
Diode Demystified: From Ideal Assumptions to Specialty ApplicationsDiode Demystified: From Ideal Assumptions to Specialty Applications
Diode Demystified: From Ideal Assumptions to Specialty Applications
GS Virdi
 
90's FILLER Quiz HINDU QUIZZING CHAMPIONSHIP 2025.pdf
90's FILLER Quiz HINDU QUIZZING CHAMPIONSHIP 2025.pdf90's FILLER Quiz HINDU QUIZZING CHAMPIONSHIP 2025.pdf
90's FILLER Quiz HINDU QUIZZING CHAMPIONSHIP 2025.pdf
MANTHAN THE QUIZZING SOCIETY OF HINDU COLLEGE
 
Using Deep Learning (DL) Approach in Teaching English Subject
Using Deep Learning (DL) Approach in Teaching English Subject Using Deep Learning (DL) Approach in Teaching English Subject
Using Deep Learning (DL) Approach in Teaching English Subject
Neny Isharyanti
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-19-2025 - 1300 HR...
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-19-2025 - 1300 HR...YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-19-2025 - 1300 HR...
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-19-2025 - 1300 HR...
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
B.Ed. First Year Semester IA. Meaning, Concept, Nature & Scope
B.Ed. First Year Semester IA. Meaning, Concept, Nature & ScopeB.Ed. First Year Semester IA. Meaning, Concept, Nature & Scope
B.Ed. First Year Semester IA. Meaning, Concept, Nature & Scope
ProfDrShaikhImran
 
FINALS INDIA QUIZ MANTHAN HQC 2025 .pdf
FINALS INDIA QUIZ MANTHAN HQC 2025  .pdfFINALS INDIA QUIZ MANTHAN HQC 2025  .pdf
FINALS INDIA QUIZ MANTHAN HQC 2025 .pdf
MANTHAN THE QUIZZING SOCIETY OF HINDU COLLEGE
 
Personal best term 2 lesson 1 .\\\//////
Personal best term 2 lesson 1 .\\\//////Personal best term 2 lesson 1 .\\\//////
Personal best term 2 lesson 1 .\\\//////
danic50
 
Simple past tense quiz. Students reinforce this grammar topic
Simple past tense quiz. Students reinforce this grammar topicSimple past tense quiz. Students reinforce this grammar topic
Simple past tense quiz. Students reinforce this grammar topic
OlgaLeonorTorresSnch
 
How to Create & Manage a New User Menu in Odoo 18
How to Create & Manage a New User Menu in Odoo 18How to Create & Manage a New User Menu in Odoo 18
How to Create & Manage a New User Menu in Odoo 18
Celine George
 
18 April 2025 Current Affairs.pptx explained
18 April  2025 Current Affairs.pptx explained18 April  2025 Current Affairs.pptx explained
18 April 2025 Current Affairs.pptx explained
Dr.A.Prabaharan Professor & Research Director, Public Action
 
Some Ethical Considerations of AI and GenAI
Some Ethical Considerations of AI and GenAISome Ethical Considerations of AI and GenAI
Some Ethical Considerations of AI and GenAI
Damian T. Gordon
 
Ledger Posting in odoo Continental Accounting
Ledger Posting in odoo Continental AccountingLedger Posting in odoo Continental Accounting
Ledger Posting in odoo Continental Accounting
Celine George
 
FLAMES QUIZ HINDU QUIZZING CHAMPIONSHIP.pdf
FLAMES QUIZ HINDU QUIZZING CHAMPIONSHIP.pdfFLAMES QUIZ HINDU QUIZZING CHAMPIONSHIP.pdf
FLAMES QUIZ HINDU QUIZZING CHAMPIONSHIP.pdf
MANTHAN THE QUIZZING SOCIETY OF HINDU COLLEGE
 
History of Pala Dynasty, Rise of Pal NEP.pptx
History of Pala Dynasty, Rise of Pal NEP.pptxHistory of Pala Dynasty, Rise of Pal NEP.pptx
History of Pala Dynasty, Rise of Pal NEP.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
MuleSoft for Agentforce: Unlocking API Catalog & Topic Center | Get Started w...
MuleSoft for Agentforce: Unlocking API Catalog & Topic Center | Get Started w...MuleSoft for Agentforce: Unlocking API Catalog & Topic Center | Get Started w...
MuleSoft for Agentforce: Unlocking API Catalog & Topic Center | Get Started w...
MysoreMuleSoftMeetup
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-23-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-23-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-23-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-23-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Pratihar Rulers Upto Mihirbhoja NEP.pptx
Pratihar Rulers Upto Mihirbhoja NEP.pptxPratihar Rulers Upto Mihirbhoja NEP.pptx
Pratihar Rulers Upto Mihirbhoja NEP.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
601: New Venture Creation and Start Up UNIT-4.pptx
601: New Venture Creation and Start Up UNIT-4.pptx601: New Venture Creation and Start Up UNIT-4.pptx
601: New Venture Creation and Start Up UNIT-4.pptx
MAYURI LONDHE
 
601 New Venture Creation And Start-Ups Unit-1
601 New Venture Creation And Start-Ups Unit-1601 New Venture Creation And Start-Ups Unit-1
601 New Venture Creation And Start-Ups Unit-1
MAYURI LONDHE
 
Some Common Errors that Generative AI Produces
Some Common Errors that Generative AI ProducesSome Common Errors that Generative AI Produces
Some Common Errors that Generative AI Produces
Damian T. Gordon
 
Diode Demystified: From Ideal Assumptions to Specialty Applications
Diode Demystified: From Ideal Assumptions to Specialty ApplicationsDiode Demystified: From Ideal Assumptions to Specialty Applications
Diode Demystified: From Ideal Assumptions to Specialty Applications
GS Virdi
 
Using Deep Learning (DL) Approach in Teaching English Subject
Using Deep Learning (DL) Approach in Teaching English Subject Using Deep Learning (DL) Approach in Teaching English Subject
Using Deep Learning (DL) Approach in Teaching English Subject
Neny Isharyanti
 
B.Ed. First Year Semester IA. Meaning, Concept, Nature & Scope
B.Ed. First Year Semester IA. Meaning, Concept, Nature & ScopeB.Ed. First Year Semester IA. Meaning, Concept, Nature & Scope
B.Ed. First Year Semester IA. Meaning, Concept, Nature & Scope
ProfDrShaikhImran
 
Personal best term 2 lesson 1 .\\\//////
Personal best term 2 lesson 1 .\\\//////Personal best term 2 lesson 1 .\\\//////
Personal best term 2 lesson 1 .\\\//////
danic50
 
Simple past tense quiz. Students reinforce this grammar topic
Simple past tense quiz. Students reinforce this grammar topicSimple past tense quiz. Students reinforce this grammar topic
Simple past tense quiz. Students reinforce this grammar topic
OlgaLeonorTorresSnch
 
How to Create & Manage a New User Menu in Odoo 18
How to Create & Manage a New User Menu in Odoo 18How to Create & Manage a New User Menu in Odoo 18
How to Create & Manage a New User Menu in Odoo 18
Celine George
 
Some Ethical Considerations of AI and GenAI
Some Ethical Considerations of AI and GenAISome Ethical Considerations of AI and GenAI
Some Ethical Considerations of AI and GenAI
Damian T. Gordon
 
Ledger Posting in odoo Continental Accounting
Ledger Posting in odoo Continental AccountingLedger Posting in odoo Continental Accounting
Ledger Posting in odoo Continental Accounting
Celine George
 
MuleSoft for Agentforce: Unlocking API Catalog & Topic Center | Get Started w...
MuleSoft for Agentforce: Unlocking API Catalog & Topic Center | Get Started w...MuleSoft for Agentforce: Unlocking API Catalog & Topic Center | Get Started w...
MuleSoft for Agentforce: Unlocking API Catalog & Topic Center | Get Started w...
MysoreMuleSoftMeetup
 
601: New Venture Creation and Start Up UNIT-4.pptx
601: New Venture Creation and Start Up UNIT-4.pptx601: New Venture Creation and Start Up UNIT-4.pptx
601: New Venture Creation and Start Up UNIT-4.pptx
MAYURI LONDHE
 

Data Science With Python | Python For Data Science | Python Data Science Course | Simplilearn

  • 2. What’s in it for you? What is Data Science? Basics of Python for Data Analysis Why learn Python? How to Install Python? Python Libraries for Data Analysis Exploratory analysis using Pandas Introduction to series and data frame Loan Prediction Problem Data Wrangling using Pandas Building a Predictive Model using Scikit-Learn Logistic Regression
  • 3. What is Data Science? Example Restaurants can predict how many customers will visit on a weekend and plan their food inventory to handle the demand Service Planning System can be trained based on customer behavior pattern to predict the likelihood of a customer buying a product Customer Prediction Data Science is about finding and exploring data in real world, and then using that knowledge to solve business problems
  • 4. Why Python? Let’s first understand, why we want to use Python?
  • 5. Why Python? The usage statistics based on google trends depict that Python is currently more popular than R or SAS for Data Science!
  • 6. Why Python? SPEED PACKAGES DESIGN GOAL But, there are various factors you should consider before deciding which language is best for your Data Analysis:
  • 7. Why Python? SPEED PACKAGES DESIGN GOAL But, there are various factors you should consider before deciding which language is best for your Data Analysis:
  • 8. Why Python? SPEED PACKAGES DESIGN GOAL But, there are various factors you should consider before deciding which language is best for your Data Analysis:
  • 9. Why Python? For instructor Design Goal: Syntax rules in python helps in building application with concise and readable code base Packages: There are numerous packages in Python to choose from like pandas to aggregate & manipulate data, Seaborn or matplotlib to visualize relational data to mention a few Speed: Studies suggest that Python is faster than several widely used languages. Also, we can further speed up python using algorithms and tools
  • 10. Installing Python Now, let’s install Python to begin the fun
  • 11. Installing Python • Go to: http://continuum io/downloads • Scroll down to download the graphical installer suitable for your operating system After successful installation, you can launch Jupyter notebook from Anaconda Navigator Anaconda comes with pre-installed libraries In this tutorial, we will be working on Jupyter notebook using Python 3
  • 12. Python libraries for Data Analysis Let’s get to know some important Python libraries for Data Analysis
  • 13. Python libraries for Data Analysis There are many interesting libraries that have made Python popular with Data Scientists:
  • 14. Python libraries for Data Analysis Most useful library for variety of high level science and engineering modules like discrete Fourier transform, Linear Algebra, Optimization and Sparse matrices Pandas for structured data operations and manipulations It is extensively used for data munging and preparation The most powerful feature of NumPy is n-dimensional array This library also contains basic linear algebra functions, Fourier transforms, advanced random number capabilities Matplotlib for plotting vast variety of graphs, starting from histograms to line plots to heat plots contains a lot of efficient tools for machine learning and statistical modeling including classification, regression, clustering and dimensional reduction For instructor
  • 15. Python libraries for Data Analysis Additional libraries, you might need: Networkx & I graph Tensorflow BeautifulSoup OS
  • 16. Python libraries for Data Analysis os for Operating system and file operations networkx and igraph for graph based data manipulations TensorFlow BeautifulSoup for scrapping web For instructor
  • 17. What is SciPy? SciPy is a set of scientific and numerical tools for Python • It currently supports special functions, integration, ordinary differential equation (ODE) solvers, gradient optimization, and others • It has fully-featured versions of the linear algebra modules • It is built on top of NumPy
  • 18. What is NumPy? NumPy is the fundamental package for scientific computing with Python. It contains: • Powerful N-dimensional array object • Tools for integrating C/C++ and Fortran code • It has useful linear algebra, Fourier transform, and random number capabilities
  • 19. What is Pandas? • The most useful Data Analysis library in Python • Instrumental in increasing the use of Python in Data Science community • It is extensively used for data munging and preparation Pandas is used for structured data operations & manipulations
  • 20. Exploratory analysis using Pandas Let’s understand the two most common terms used in Pandas: Series Dataframe
  • 21. Exploratory analysis using Pandas A Series is a one-dimensional object that can hold any data type such as integers, floats and strings Series A DataFrame is a two dimensional object that can have columns with potential different data types DataFrame Pandas
  • 22. Exploratory analysis using Pandas Default column names Default index Default index Series DataFrame
  • 23. Exploratory analysis using Pandas Default column names Default index Default index Series DataFrame
  • 24. Exploratory analysis using Pandas Problem Statement: Based on customer data, predict whether a particular customer’s loan will be approved or not LOAN
  • 25. Exploratory analysis using Pandas Now, let’s explore our data using Pandas!
  • 26. Exploratory analysis using Pandas Import the necessary libraries and read the dataset using read_csv() function:
  • 27. Exploratory analysis using Pandas You can call describe() function to describe all the columns:
  • 28. Exploratory analysis using Pandas Let’s see numercial values’ distribution 1 Loan Amount
  • 29. Exploratory analysis using Pandas 2 Applicant Income
  • 30. Exploratory analysis using Pandas Categorical values’ distribution using matplotlib library: Credit History
  • 31. Exploratory analysis using Pandas Hence, ‘loanAmount’ and ‘ApplicantIncome’ needs Data Wrangling as some extreme values are observed!
  • 32. Data Wrangling using Pandas Before proceeding further, let’s understand what is Data Wrangling and why we need it?
  • 33. Data Wrangling: Process of cleaning and unifying messy and complex data sets It reveals more information about your data Enables decision-making skills in the organization Helps to gather meaningful and precise data for the business Data Wrangling using Pandas
  • 34. Data Wrangling using Pandas You can see if your data has missing values:
  • 35. Data Wrangling using Pandas And then you can replace the missing values:
  • 36. Data Wrangling using Pandas You can access the data types of each column in a DataFrame:
  • 37. Data Wrangling using Pandas You can perform basic math operations to know more about your data:
  • 38. Data Wrangling using Pandas You can combine your DataFrames: Combining DataFrame objects can be done using simple concatenation (provided they have the same columns): Creates an array of specified shape and fills it with random values using numpy
  • 40. Data Wrangling using Pandas Also, if your DataFrame do not have an identical structure:
  • 41. Data Wrangling using Pandas You can create a merged dataframe using the merge() function based on the key:
  • 42. Model Building using Scikit-learn Now, that we have done data wrangling, let’s build a predictive model
  • 43. Model Building using Scikit-learn We will use Scikit-learn module as it provides a range of supervised and unsupervised learning algorithms
  • 44. Model Building using Scikit-learn Importing the required scikit-learn module:
  • 45. Model Building using Scikit-learn Extracting the variables and then splitting the data into train and test:
  • 46. Model Building using Scikit-learn In this case, we will use Logistic Regression model Logistic Regression is appropriate when the dependent variable is binary
  • 47. Model Building using Scikit-learn Fitting the data into Logistic Regression model:
  • 48. Model Building using Scikit-learn Predicting the test results:
  • 49. Model Building using Scikit-learn To describe the performance of the model let’s build the confusion matrix on test data:
  • 50. Model Building using Scikit-learn Let’s calculate ACCURACY and PRECISION from confusion matrix: False Positive True Positive False Negative True Negative
  • 51. Model Building using Scikit-learn Let’s calculate ACCURACY and PRECISION from confusion matrix: • Accuracy Overall, how often is the classifier correct? (TP+TN)/total = (103+18)/150 = 0.80 • Precision When it predicts yes, how often is it correct? TP/predicted yes = 103/130 = 0.79
  • 52. Model Building using Scikit-learn We can also find the accuracy through Python module:
  • 53. Model Building using Scikit-learn So , we have built a model with 80% accuracy
  • 54. Summary Data Science & its popularity with python Data Analysis Libraries in python Series and dataframe in pandas Logistic Regression using scikitData wranglingExploratory analysis

Editor's Notes

  • #3: Remove title case