SlideShare una empresa de Scribd logo
1 de 29
FROM SQL TO PYTHON:
HANDS-ON DATA
ANALYTICS AND MACHINE
LEARNING
RACHEL BERRYMAN
DATA SCIENTIST – TEMPUS ENERGY
RACHELKBERRYMAN@GMAIL.COM
ABOUT ME
MSc Sustainable
Development, BA
Economics
Senior Energy Data
Analyst
Data Science Retreat
Batch 12, 2017
Data Scientist at
Tempus Energy.
Instructor of Model
Pipelines course at DSR
FROM DATA ANALYSIS TO DATA SCIENCE
What’s the
difference between
data analysis and
Data Science?
How do I know if a
career in Data Science
is right for me?
How do I make the
switch to a career in
Data Science?
WHAT IS DATA SCIENCE?
• Data Science definition (Wikipedia): Data
Science is a concept to unify statistics,
data analysis, machine learning and their
related methods in order to understand
and analyze actual phenomena with data.
It employs techniques and theories
drawn from many fields within the broad
areas
of mathematics, statistics, information
science, and computer science.
DATA ANALYSIS VS. DATA SCIENCE:
WHAT’S THE DIFFERENCE?
• Data Analysis mainly looks at the present and past. It answers
questions like:
• How much revenue did we bring in last year?
• What is product does customer X buy most frequently?
• Data Science mainly looks at the present and future. It answers
questions like:
• What products should we invest in expanding for the future?
• What product should we recommend to customer X so that they buy
more when they visit our site, based on their most-purchased products
in the past?
DATA ANALYSIS VS. DATA SCIENCE:
WHAT’S THE DIFFERENCE?
• Data Analysis works mainly with proprietary tools
• Oracle, MS SQL Server, Tableau.
• Data Science works mainly with open-source tools
• Open-source languages and packages: ie Python, scikit-learn, keras,
matplotlib
DATA ANALYSIS VS. DATA SCIENCE:
WHAT’S THE DIFFERENCE?
• Data Analysis works with data from one or few sources
• Ex: data from an in-house SQL database.
• Data Science works with data from many varying sources
• Ex: data from in-house SQL database, data scraped from the web, text
data from customer surveys, data from across multiple departments
WHY DO COMPANIES NEED DATA
SCIENTISTS?
• More and more data comes in
unstructured formats: ex,
natural language in emails and
social media posts, photos,
audio files.
• Data Scientists make use of
this data and apply it to
pressing business questions.
IS DATA SCIENCE RIGHT FOR ME?
 You like to code
 You like to work across many teams and find synergies
 You enjoy getting “stuck in” and working through challenges
 You consider yourself a life-long learner
 You like math
 You seek out work and answers to questions: you don’t wait
for questions to be delegated to you
HOW CAN I MAKE THE SWITCH FROM DATA
ANALYSIS TO DATA SCIENCE?
• Learn the basics:
• Practical
• Command Line
• Git and Github
• A common Data Science programming language (Python, or R).
• Theoretical
• Machine Learning Algorithms
• Supervised, Unsupervised
• Go further:
• MOOCs
• Intensive deep-dive: Bootcamp/Retreat
LEARN THE BASICS: COMMAND LINE & GIT
• Command line is how you directly interact with your computer
(sans GUI). It is the “ultimate seat of power for your computer”.
• Git is a distributed version control system. Git is responsible for
keeping track of changes to content (usually source code files),
and it provides mechanisms for sharing that content with
others. GitHub is a company that provides Git repository
hosting.
• Learn how to use your command line to clone repositories
(‘repos’) from GitHub. You will open up a world of learning
opportunities!
LEARN THE BASICS: PYTHON FOR DATA
MUNGING AND ANALYSIS
• In SQL, you’re usually using a company-purchased software
like Oracle SQL Developer, or MS SQL Server Management
Studio.
LEARN THE BASICS: PYTHON FOR DATA
MUNGING AND ANALYSIS
Python
Interpreter
iPython IDE/Jupyter
Get
Coding! 
LEARN THE BASICS: PYTHON FOR DATA
MUNGING AND ANALYSIS
Python Interpreter
LEARN THE BASICS: PYTHON FOR DATA
MUNGING AND ANALYSIS
iPython
LEARN THE BASICS: PYTHON FOR DATA
MUNGING AND ANALYSIS
Jupyter Notebook
LEARN THE BASICS: PYTHON FOR DATA
MUNGING AND ANALYSIS
• IDEs:
• Python-specific:
• PyCharm
• Spyder
• Thonny
• General, with support for
Python:
• Atom (also can add iPython
with Hydrogen)
• Sublime Text
• Vim
LEARN THE BASICS: PYTHON FOR DATA
MUNGING AND ANALYSIS
LEARN THE BASICS: PYTHON FOR DATA
MUNGING AND ANALYSIS
PYTHON BEYOND DATA SCIENCE
LEARN THE BASICS: PYTHON FOR DATA
MUNGING AND ANALYSIS
• Start with what you know!
• Write SQL commands in Python
• Automate what you would have to do manually in Excel
• Use matplotlib to make visualizations you would have done in Tableau
• Learn what you don’t know
• Python packages, modules, libraries
• Object-Oriented Programming (OOP)
LEARN THE BASICS: PYTHON FOR DATA
SCIENCE AND MACHINE LEARNING
• Github Repo with practice for switching from SQL to Python
• Clone repo: https://github.com/rachelkberryman/From_SQL_to_Python
• cd into repo, and run command “jupyter notebook” (more information
about jupyter notebooks here)
• Includes:
• sample SQL queries with Python equivalents
• examples of Python functions for data manipulation and analysis
• sample visualizations in Seaborn
LEARN THE BASICS: PYTHON FOR DATA
SCIENCE AND MACHINE LEARNING
• By applying machine learning algorithms (with code), you will
learn them MUCH more quickly than by only reading about
them
• Even better, apply them to a sample dataset (work and/or
passion project)
GOING FURTHER: MOOCS VS. DEEP DIVE
• The jump from automating what you already know to working
with predictive models is where most people get overwhelmed.
• Need for more structured learning: MOOCs vs. Deep Dive
GOING FURTHER: MOOCS VS. DEEP DIVE
MOOCs:
• PROs:
• On your own time
• Little risk
• CONs:
• No or little help when stuck
• No supportive community/job
help
Deep Dive:
• PROs:
• Structure and support
• Faster learning rate
• Network and hiring support
• CONs:
• Risk and opportunity cost
MAKING THE SWITCH: GOING FURTHER
• MOOCs:
• Andrew Ng’s Machine Learning course on Coursera
• Explanation of machine learning algorithms
• Applied Data Science with Python course on Coursera
• Coding practice in notebooks, with explanation videos
• Deep Dive: Data Science Retreat
• 3 months of intensive data science teaching and training in Berlin
• Culminates in final portfolio project
MORE RESOURCES
• On Python:
• Think Python: Thinking Like a Computer Scientist, Allan B. Downey
• Fluent Python, Luciano Ramalho
• On DS/ML:
• Think Bayes: Bayesian Statistics in Python, Allan B. Downey
• The Master Algorithm, Pedro Domingos
• Pattern Recognition in Machine Learning, Christopher Bishop
QUESTIONS?
Contact me:
rachelkberryman@gmail.com
Github.com/rachelkberryman

Más contenido relacionado

La actualidad más candente

Clare Corthell: Learning Data Science Online
Clare Corthell: Learning Data Science OnlineClare Corthell: Learning Data Science Online
Clare Corthell: Learning Data Science Onlinesfdatascience
 
Introduction to Big Data/Machine Learning
Introduction to Big Data/Machine LearningIntroduction to Big Data/Machine Learning
Introduction to Big Data/Machine LearningLars Marius Garshol
 
Mauritius Big Data and Machine Learning JEDI workshop
Mauritius Big Data and Machine Learning JEDI workshopMauritius Big Data and Machine Learning JEDI workshop
Mauritius Big Data and Machine Learning JEDI workshopCosmoAIMS Bassett
 
Agile Data Science by Russell Jurney_ The Hive_Janruary 29 2014
Agile Data Science by Russell Jurney_ The Hive_Janruary 29 2014Agile Data Science by Russell Jurney_ The Hive_Janruary 29 2014
Agile Data Science by Russell Jurney_ The Hive_Janruary 29 2014The Hive
 
The path to be a data scientist
The path to be a data scientistThe path to be a data scientist
The path to be a data scientistPoo Kuan Hoong
 
How to become a data scientist
How to become a data scientist How to become a data scientist
How to become a data scientist Manjunath Sindagi
 
Interleaving, Evaluation to Self-learning Search @904Labs
Interleaving, Evaluation to Self-learning Search @904LabsInterleaving, Evaluation to Self-learning Search @904Labs
Interleaving, Evaluation to Self-learning Search @904LabsJohn T. Kane
 
Training in Analytics and Data Science
Training in Analytics and Data ScienceTraining in Analytics and Data Science
Training in Analytics and Data ScienceAjay Ohri
 
Intro to Machine Learning
Intro to Machine LearningIntro to Machine Learning
Intro to Machine LearningCorey Chivers
 
Becoming a Data Scientist: Advice From My Podcast Guests
Becoming a Data Scientist: Advice From My Podcast GuestsBecoming a Data Scientist: Advice From My Podcast Guests
Becoming a Data Scientist: Advice From My Podcast GuestsRenee Teate
 
machine learning in the age of big data: new approaches and business applicat...
machine learning in the age of big data: new approaches and business applicat...machine learning in the age of big data: new approaches and business applicat...
machine learning in the age of big data: new approaches and business applicat...Armando Vieira
 
Life of a data scientist (pub)
Life of a data scientist (pub)Life of a data scientist (pub)
Life of a data scientist (pub)Buhwan Jeong
 
Full-stack Data Scientist
Full-stack Data ScientistFull-stack Data Scientist
Full-stack Data ScientistAlexey Grigorev
 
Azure Machine Learning
Azure Machine LearningAzure Machine Learning
Azure Machine LearningMostafa
 
Putting the Magic in Data Science
Putting the Magic in Data SciencePutting the Magic in Data Science
Putting the Magic in Data ScienceSean Taylor
 
Open Data, Big Data and Machine Learning
Open Data, Big Data and Machine LearningOpen Data, Big Data and Machine Learning
Open Data, Big Data and Machine LearningSteven Van Vaerenbergh
 
Machine Learning in the age of Big Data
Machine Learning in the age of Big DataMachine Learning in the age of Big Data
Machine Learning in the age of Big DataDaniel Sârbe
 
How to become a data scientist
How to become a data scientistHow to become a data scientist
How to become a data scientistDeZyre
 

La actualidad más candente (20)

Clare Corthell: Learning Data Science Online
Clare Corthell: Learning Data Science OnlineClare Corthell: Learning Data Science Online
Clare Corthell: Learning Data Science Online
 
Introduction to Big Data/Machine Learning
Introduction to Big Data/Machine LearningIntroduction to Big Data/Machine Learning
Introduction to Big Data/Machine Learning
 
Mauritius Big Data and Machine Learning JEDI workshop
Mauritius Big Data and Machine Learning JEDI workshopMauritius Big Data and Machine Learning JEDI workshop
Mauritius Big Data and Machine Learning JEDI workshop
 
Agile Data Science by Russell Jurney_ The Hive_Janruary 29 2014
Agile Data Science by Russell Jurney_ The Hive_Janruary 29 2014Agile Data Science by Russell Jurney_ The Hive_Janruary 29 2014
Agile Data Science by Russell Jurney_ The Hive_Janruary 29 2014
 
The path to be a data scientist
The path to be a data scientistThe path to be a data scientist
The path to be a data scientist
 
How to become a data scientist
How to become a data scientist How to become a data scientist
How to become a data scientist
 
Interleaving, Evaluation to Self-learning Search @904Labs
Interleaving, Evaluation to Self-learning Search @904LabsInterleaving, Evaluation to Self-learning Search @904Labs
Interleaving, Evaluation to Self-learning Search @904Labs
 
Machine learning
Machine learningMachine learning
Machine learning
 
Training in Analytics and Data Science
Training in Analytics and Data ScienceTraining in Analytics and Data Science
Training in Analytics and Data Science
 
Intro to Machine Learning
Intro to Machine LearningIntro to Machine Learning
Intro to Machine Learning
 
Becoming a Data Scientist: Advice From My Podcast Guests
Becoming a Data Scientist: Advice From My Podcast GuestsBecoming a Data Scientist: Advice From My Podcast Guests
Becoming a Data Scientist: Advice From My Podcast Guests
 
machine learning in the age of big data: new approaches and business applicat...
machine learning in the age of big data: new approaches and business applicat...machine learning in the age of big data: new approaches and business applicat...
machine learning in the age of big data: new approaches and business applicat...
 
Life of a data scientist (pub)
Life of a data scientist (pub)Life of a data scientist (pub)
Life of a data scientist (pub)
 
Full-stack Data Scientist
Full-stack Data ScientistFull-stack Data Scientist
Full-stack Data Scientist
 
Azure Machine Learning
Azure Machine LearningAzure Machine Learning
Azure Machine Learning
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Putting the Magic in Data Science
Putting the Magic in Data SciencePutting the Magic in Data Science
Putting the Magic in Data Science
 
Open Data, Big Data and Machine Learning
Open Data, Big Data and Machine LearningOpen Data, Big Data and Machine Learning
Open Data, Big Data and Machine Learning
 
Machine Learning in the age of Big Data
Machine Learning in the age of Big DataMachine Learning in the age of Big Data
Machine Learning in the age of Big Data
 
How to become a data scientist
How to become a data scientistHow to become a data scientist
How to become a data scientist
 

Similar a From SQL to Python - A Beginner's Guide to Making the Switch

Data science presentation
Data science presentationData science presentation
Data science presentationMSDEVMTL
 
NYC Open Data Meetup-- Thoughtworks chief data scientist talk
NYC Open Data Meetup-- Thoughtworks chief data scientist talkNYC Open Data Meetup-- Thoughtworks chief data scientist talk
NYC Open Data Meetup-- Thoughtworks chief data scientist talkVivian S. Zhang
 
How to crack Big Data and Data Science roles
How to crack Big Data and Data Science rolesHow to crack Big Data and Data Science roles
How to crack Big Data and Data Science rolesUpXAcademy
 
How I became ML Engineer
How I became ML Engineer How I became ML Engineer
How I became ML Engineer Kevin Lee
 
Which institute is best for data science?
Which institute is best for data science?Which institute is best for data science?
Which institute is best for data science?DIGITALSAI1
 
Best Selenium certification course
Best Selenium certification courseBest Selenium certification course
Best Selenium certification courseKumarNaik21
 
Data science training in hyd ppt (1)
Data science training in hyd ppt (1)Data science training in hyd ppt (1)
Data science training in hyd ppt (1)SayyedYusufali
 
Data science training institute in hyderabad
Data science training institute in hyderabadData science training institute in hyderabad
Data science training institute in hyderabadVamsiNihal
 
Data science training in Hyderabad
Data science  training in HyderabadData science  training in Hyderabad
Data science training in Hyderabadsaitejavella
 
Data science training Hyderabad
Data science training HyderabadData science training Hyderabad
Data science training HyderabadNithinsunil1
 
Data science online training in hyderabad
Data science online training in hyderabadData science online training in hyderabad
Data science online training in hyderabadVamsiNihal
 
Data science training in hyd ppt (1)
Data science training in hyd ppt (1)Data science training in hyd ppt (1)
Data science training in hyd ppt (1)SayyedYusufali
 
data science training and placement
data science training and placementdata science training and placement
data science training and placementSaiprasadVella
 
online data science training
online data science trainingonline data science training
online data science trainingDIGITALSAI1
 
Data science online training in hyderabad
Data science online training in hyderabadData science online training in hyderabad
Data science online training in hyderabadVamsiNihal
 
data science online training in hyderabad
data science online training in hyderabaddata science online training in hyderabad
data science online training in hyderabadVamsiNihal
 
Best data science training in Hyderabad
Best data science training in HyderabadBest data science training in Hyderabad
Best data science training in HyderabadKumarNaik21
 
Data science training Hyderabad
Data science training HyderabadData science training Hyderabad
Data science training HyderabadNithinsunil1
 
Data Science Training and Placement
Data Science Training and PlacementData Science Training and Placement
Data Science Training and PlacementAkhilGGM
 

Similar a From SQL to Python - A Beginner's Guide to Making the Switch (20)

Data science presentation
Data science presentationData science presentation
Data science presentation
 
NYC Open Data Meetup-- Thoughtworks chief data scientist talk
NYC Open Data Meetup-- Thoughtworks chief data scientist talkNYC Open Data Meetup-- Thoughtworks chief data scientist talk
NYC Open Data Meetup-- Thoughtworks chief data scientist talk
 
How to crack Big Data and Data Science roles
How to crack Big Data and Data Science rolesHow to crack Big Data and Data Science roles
How to crack Big Data and Data Science roles
 
Lean Analytics: How to get more out of your data science team
Lean Analytics: How to get more out of your data science teamLean Analytics: How to get more out of your data science team
Lean Analytics: How to get more out of your data science team
 
How I became ML Engineer
How I became ML Engineer How I became ML Engineer
How I became ML Engineer
 
Which institute is best for data science?
Which institute is best for data science?Which institute is best for data science?
Which institute is best for data science?
 
Best Selenium certification course
Best Selenium certification courseBest Selenium certification course
Best Selenium certification course
 
Data science training in hyd ppt (1)
Data science training in hyd ppt (1)Data science training in hyd ppt (1)
Data science training in hyd ppt (1)
 
Data science training institute in hyderabad
Data science training institute in hyderabadData science training institute in hyderabad
Data science training institute in hyderabad
 
Data science training in Hyderabad
Data science  training in HyderabadData science  training in Hyderabad
Data science training in Hyderabad
 
Data science training Hyderabad
Data science training HyderabadData science training Hyderabad
Data science training Hyderabad
 
Data science online training in hyderabad
Data science online training in hyderabadData science online training in hyderabad
Data science online training in hyderabad
 
Data science training in hyd ppt (1)
Data science training in hyd ppt (1)Data science training in hyd ppt (1)
Data science training in hyd ppt (1)
 
data science training and placement
data science training and placementdata science training and placement
data science training and placement
 
online data science training
online data science trainingonline data science training
online data science training
 
Data science online training in hyderabad
Data science online training in hyderabadData science online training in hyderabad
Data science online training in hyderabad
 
data science online training in hyderabad
data science online training in hyderabaddata science online training in hyderabad
data science online training in hyderabad
 
Best data science training in Hyderabad
Best data science training in HyderabadBest data science training in Hyderabad
Best data science training in Hyderabad
 
Data science training Hyderabad
Data science training HyderabadData science training Hyderabad
Data science training Hyderabad
 
Data Science Training and Placement
Data Science Training and PlacementData Science Training and Placement
Data Science Training and Placement
 

Último

Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023ymrp368
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...shivangimorya083
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...SUHANI PANDEY
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...amitlee9823
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% SecurePooja Nehwal
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxolyaivanovalion
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightDelhi Call girls
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Valters Lauzums
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Delhi Call girls
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Delhi Call girls
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 

Último (20)

Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 

From SQL to Python - A Beginner's Guide to Making the Switch

  • 1. FROM SQL TO PYTHON: HANDS-ON DATA ANALYTICS AND MACHINE LEARNING RACHEL BERRYMAN DATA SCIENTIST – TEMPUS ENERGY RACHELKBERRYMAN@GMAIL.COM
  • 2. ABOUT ME MSc Sustainable Development, BA Economics Senior Energy Data Analyst Data Science Retreat Batch 12, 2017 Data Scientist at Tempus Energy. Instructor of Model Pipelines course at DSR
  • 3. FROM DATA ANALYSIS TO DATA SCIENCE What’s the difference between data analysis and Data Science? How do I know if a career in Data Science is right for me? How do I make the switch to a career in Data Science?
  • 4. WHAT IS DATA SCIENCE? • Data Science definition (Wikipedia): Data Science is a concept to unify statistics, data analysis, machine learning and their related methods in order to understand and analyze actual phenomena with data. It employs techniques and theories drawn from many fields within the broad areas of mathematics, statistics, information science, and computer science.
  • 5. DATA ANALYSIS VS. DATA SCIENCE: WHAT’S THE DIFFERENCE? • Data Analysis mainly looks at the present and past. It answers questions like: • How much revenue did we bring in last year? • What is product does customer X buy most frequently? • Data Science mainly looks at the present and future. It answers questions like: • What products should we invest in expanding for the future? • What product should we recommend to customer X so that they buy more when they visit our site, based on their most-purchased products in the past?
  • 6. DATA ANALYSIS VS. DATA SCIENCE: WHAT’S THE DIFFERENCE? • Data Analysis works mainly with proprietary tools • Oracle, MS SQL Server, Tableau. • Data Science works mainly with open-source tools • Open-source languages and packages: ie Python, scikit-learn, keras, matplotlib
  • 7. DATA ANALYSIS VS. DATA SCIENCE: WHAT’S THE DIFFERENCE? • Data Analysis works with data from one or few sources • Ex: data from an in-house SQL database. • Data Science works with data from many varying sources • Ex: data from in-house SQL database, data scraped from the web, text data from customer surveys, data from across multiple departments
  • 8. WHY DO COMPANIES NEED DATA SCIENTISTS? • More and more data comes in unstructured formats: ex, natural language in emails and social media posts, photos, audio files. • Data Scientists make use of this data and apply it to pressing business questions.
  • 9.
  • 10. IS DATA SCIENCE RIGHT FOR ME?  You like to code  You like to work across many teams and find synergies  You enjoy getting “stuck in” and working through challenges  You consider yourself a life-long learner  You like math  You seek out work and answers to questions: you don’t wait for questions to be delegated to you
  • 11. HOW CAN I MAKE THE SWITCH FROM DATA ANALYSIS TO DATA SCIENCE? • Learn the basics: • Practical • Command Line • Git and Github • A common Data Science programming language (Python, or R). • Theoretical • Machine Learning Algorithms • Supervised, Unsupervised • Go further: • MOOCs • Intensive deep-dive: Bootcamp/Retreat
  • 12. LEARN THE BASICS: COMMAND LINE & GIT • Command line is how you directly interact with your computer (sans GUI). It is the “ultimate seat of power for your computer”. • Git is a distributed version control system. Git is responsible for keeping track of changes to content (usually source code files), and it provides mechanisms for sharing that content with others. GitHub is a company that provides Git repository hosting. • Learn how to use your command line to clone repositories (‘repos’) from GitHub. You will open up a world of learning opportunities!
  • 13. LEARN THE BASICS: PYTHON FOR DATA MUNGING AND ANALYSIS • In SQL, you’re usually using a company-purchased software like Oracle SQL Developer, or MS SQL Server Management Studio.
  • 14. LEARN THE BASICS: PYTHON FOR DATA MUNGING AND ANALYSIS Python Interpreter iPython IDE/Jupyter Get Coding! 
  • 15. LEARN THE BASICS: PYTHON FOR DATA MUNGING AND ANALYSIS Python Interpreter
  • 16. LEARN THE BASICS: PYTHON FOR DATA MUNGING AND ANALYSIS iPython
  • 17. LEARN THE BASICS: PYTHON FOR DATA MUNGING AND ANALYSIS Jupyter Notebook
  • 18. LEARN THE BASICS: PYTHON FOR DATA MUNGING AND ANALYSIS • IDEs: • Python-specific: • PyCharm • Spyder • Thonny • General, with support for Python: • Atom (also can add iPython with Hydrogen) • Sublime Text • Vim
  • 19. LEARN THE BASICS: PYTHON FOR DATA MUNGING AND ANALYSIS
  • 20. LEARN THE BASICS: PYTHON FOR DATA MUNGING AND ANALYSIS
  • 22. LEARN THE BASICS: PYTHON FOR DATA MUNGING AND ANALYSIS • Start with what you know! • Write SQL commands in Python • Automate what you would have to do manually in Excel • Use matplotlib to make visualizations you would have done in Tableau • Learn what you don’t know • Python packages, modules, libraries • Object-Oriented Programming (OOP)
  • 23. LEARN THE BASICS: PYTHON FOR DATA SCIENCE AND MACHINE LEARNING • Github Repo with practice for switching from SQL to Python • Clone repo: https://github.com/rachelkberryman/From_SQL_to_Python • cd into repo, and run command “jupyter notebook” (more information about jupyter notebooks here) • Includes: • sample SQL queries with Python equivalents • examples of Python functions for data manipulation and analysis • sample visualizations in Seaborn
  • 24. LEARN THE BASICS: PYTHON FOR DATA SCIENCE AND MACHINE LEARNING • By applying machine learning algorithms (with code), you will learn them MUCH more quickly than by only reading about them • Even better, apply them to a sample dataset (work and/or passion project)
  • 25. GOING FURTHER: MOOCS VS. DEEP DIVE • The jump from automating what you already know to working with predictive models is where most people get overwhelmed. • Need for more structured learning: MOOCs vs. Deep Dive
  • 26. GOING FURTHER: MOOCS VS. DEEP DIVE MOOCs: • PROs: • On your own time • Little risk • CONs: • No or little help when stuck • No supportive community/job help Deep Dive: • PROs: • Structure and support • Faster learning rate • Network and hiring support • CONs: • Risk and opportunity cost
  • 27. MAKING THE SWITCH: GOING FURTHER • MOOCs: • Andrew Ng’s Machine Learning course on Coursera • Explanation of machine learning algorithms • Applied Data Science with Python course on Coursera • Coding practice in notebooks, with explanation videos • Deep Dive: Data Science Retreat • 3 months of intensive data science teaching and training in Berlin • Culminates in final portfolio project
  • 28. MORE RESOURCES • On Python: • Think Python: Thinking Like a Computer Scientist, Allan B. Downey • Fluent Python, Luciano Ramalho • On DS/ML: • Think Bayes: Bayesian Statistics in Python, Allan B. Downey • The Master Algorithm, Pedro Domingos • Pattern Recognition in Machine Learning, Christopher Bishop

Notas del editor

  1. SaaS platform for energy utility bills: got data in a lot of formats, and basically just fit it into the Database. Creative bit was getting to use tableau. Quickly realized I wanted to work on more intense analytics/topics. Thrown in the deep end at DSR, but I survived.
  2. To process all of this unstructured data, you need to not only analyze it and be able to make predictions about what it will do in the future, but you also build solutions for managing it, storing it, and manipulating it. This is why many people see Data Scientists as first and foremost being Software Engineers. Source: Wikipedia.
  3. DS: we don’t just query the data that’s already there, we use that data to create predictions for the future.
  4. Could be argued, but I’ve found this to be true in industry. Proprietary tools cost money, and you’re (mostly) bound to only the data your company has.
  5. Data Science is much more synergetic.
  6. https://blog.samanage.com/insights/whats-the-difference-between-structured-and-unstructured-data/
  7. https://blog.samanage.com/insights/whats-the-difference-between-structured-and-unstructured-data/
  8. - Life long learner: because it’s such a new field, there are constantly new technologies and libraries coming out that you have to stay up on.
  9. Command line is ESSENTIAL before learning any “proper” coding language. https://www.davidbaumgold.com/tutorials/command-line/ https://softwareengineering.stackexchange.com/questions/173321/conceptual-difference-between-git-and-github Git is a revision control system, a tool to manage your source code history. GitHub is a hosting service for Git repositories. So they are not the same thing: Git is the tool, GitHub is the service for projects that use Git.
  10. It’s important to learn how different working in Python is from working in SQL. In SQL, you’re usually using a company-purchased software like Oracle SQL Developer, or MS SQL Server Management Studio. With these, you usually have authentications that let you run queries on various databases in the RDBMS. Because SQL is a QUERY language, it’s only as good as the data you have access to. The great thing about Python is that you’re not tied to one buggy editor for running your code. Also, you’re not tied to data from one source.
  11. Python isn’t like this. Anyone can code in python if they have a computer, you just have to know how to get it started! To start learning Python, you have to get it working on your computer. To code in Python you have to have a python interpreter on your computer. This is the program that reads your python code and does what it says. Macs have this built in.
  12. iPython is an interface to the python language. It lets you run small bits of code without writing entire programs. Usually, regular Python is used for scripts that you’ve already written. A script contains a list of commands to execute in order. It runs from start to finish and display some output. On the contrary, with IPython, you generally write one command at a time and you get the results instantly, and it has a lot of features to make it work better. Additional features: Tab autocompletion (on class names, functions, methods, variables) More explicit and colour-highlighted error messages Better history management Basic UNIX shell integration (you can run simple shell commands such as cp, ls, rm, cp, etc. directly from the IPython command line)
  13. Another interface, but web-based. Makes it easy to share as you can save them as HTML files or PDFs. Lets you both run code (via an ipython kernel), and add text in markdown cells. Great for playing around and trying things.
  14. IDE (or Integrated Development Environment) is a program dedicated to software development. (ideally) lets you work in both script and interactive modes. Good for when you’ve “graduated” from jupyter notebooks and need something to right more full length programs.
  15. Anaconda is a distribution of Python, made specifically for data science. The goal is to make it easy to have everything you need to do data science in python. When you download it, you automatically get jupyter, and a lot of the core libraries. Now, about libraries…
  16. There are a lot of libraries in python that directly deal with data: Ex: pandas There are also a LOT that don’t. Learn the ones that deal with data first! Also, learn the ones that deal with data that you already know how to work with first. Ex: learn pandas for working with CSVs before you learn beautifulsoup for scraping data off the web. Quick read on some of this biggest Python libraries: http://www.developintelligence.com/blog/python-ecosystem-2017/
  17. When I started with python, I was frustrated not being able to do everything I could already do in SQL, as far as manipulating data. A lot of the tutorials are abstract and go too far in to the basics.
  18. Once you have Python working, you can start using it on a real dataset. This is e-commerce data from Kaggle. Once you’ve played around a bit with the SQL-like and data-focused libraries, you can move on to learning about machine learning, and going beyond just analytics.
  19. Get a rough idea, ex: If yours is a supervised or unsupervised learning problem, if it’s regression or classification, and then, read about each algorithm as you implement them.
  20. MOOCs: Massive Open Online Course