Uber Data Analysis with Python
Sampriti Chatterjee (Great Learning)
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Agenda
1 Why do we need data science? 7 Basic Syntax for Python
2 What is Data science?
8 What is machine Learning?
3 Life cycle of Data science 9 Supervised Learning: Linear
Regression
4 Why Python is so popular? 10
Uber data analysis to predict price
5 Install python
6 Statistical visualization on Python user
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Why do we need Data Science?
• In the past, we used to have data in a structured
format but now as the volume of the data is increasing,
How data science is so the number of structured data becomes very less,
effecting our
so to handle the massive amount of data we need data
everyday life?
science techniques
• Those data can be used to get the proper business
insights and the hidden trends from them.
• These insights helps the organization to predict the
Future
• Using data science decision making can be faster and
effective
• Helps to reduce the production cost
• Build model based on the data to give the ability to the
machine to predicts on its own
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is Data Science?
Data science is a process to get some meaningful
information from the massive amount of data. In simple
terms, read and study the data to get proper intuitive
insights. Data Science is a mixture of various tools,
algorithms, and machine learning and deep learning
concepts to discover hidden patterns from the raw and
unstructured data
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Life cycle of Data Science?
Understand the business
problem Data Acquisition Data Cleaning
Exploratory data Analysis
Deploy the model Predict your model accuracy Machine Learning Algorithm
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Most Popular Programming Languages For Data Science
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Introduction to Python
Python is a popular high level, object oriented and interpreted language
High level Interpreted
Object oriented
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
History of Python
But, why the Important Facts
language called as • Python is invented by Guido van Rossum
Python?
in 1989
• Rossum used to love watching comedy
movies from late seventies
• He needed a short, unique, and slightly
mysterious name for his language
• In that time he was watching Monty
Inventor of Python Python’s Flying Circus and from that
series he decided to keep his language
name python.
• This how Python invented
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Why should you learn Python?
Python is simple and beginner
3 friendly language
1 Web development using
Python
5 Graphical user interface
4
2 Length of the program is
Mathematical computation
short
can be done easily
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Why Python is so popular?
1 Largest community for Learners and Collaborators 2 Open source
Easy to learn and usable flexibility Huge numbers of Python libraries and
3 4
Frame work
5 Supports Big Data, Machine Learning 6
Supports Automation
and Cloud computing
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Installing Python
This is the site to install Python -> https://www.python.org/downloads/
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Popular IDE for Python: Pycharm
Site to install Python ->
https://www.jetbrains.com/pycharm/download/#section=mac
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Popular IDE for Python: Anaconda
Anaconda installation site->
https://www.anaconda.com/products/individual
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Popular IDE for Python: Google colab
Google collaboratory link->
https://colab.research.google.com/notebooks/intro.ipynb
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Statistical measurement on Python user
In recent time it is prominent that Python is one of the most popular language because of
it’s simplicity
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Uber Data Analysis
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Exploratory Data Analysis
Exploratory data analysis is basically a technique to understand your
data using statistics concept
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Feature Engineering
Feature engineering process is basically used to create new feature from
the existing data which helps to understand the data more deeply
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is Machine Learning?
Machine learning is a sub-set of artificial intelligence (AI) that allows the system to
automatically learn and improve from experience without being explicitly programmed
Training Data Model Building Testing Data
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Traditional Vs Machine Learning
Traditional Programming Machine Learning
Data Data
Model
Output
Program Output
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Types Of Machine Learning
Supervised Learning
Unsupervised
Learning
Reinforcement
Learning
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is Supervised Learning?
Supervised learning works as a supervisor or teacher. Basically, In supervised learning, we teach or train the
machine with labeled data (that means data is already tagged with some predefined class). Then we test our
model with some unknown new set of data and predict the level for them
Learning from the labelled data and applying the knowledge to predict the
label of the new data(test data), is known as Supervised Learning
Types of Supervised Learning:
• Linear Regression
• Logistic regression
• Decision Tree
• Random Forest
• Naïve Bayes Classifier
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is Linear Regression?
Regression stands for to model a target value based on independent variables and Linear Regression
is used to find the relationship between dependent(y) and independent variable(x)
Linear regression is a supervised machine learning algorithm
Always works with continuous value
Formula: y = mx+c m=slope of line and c= intercept
Main target for linear regression to find the best value for X and Y
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Thank You
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited