SlideShare une entreprise Scribd logo
1  sur  25
For Data Science
Structure
• Part 1 - Introduction, recap & warm-up exercises
• Part 2 - NumPy (Numerical Python)
• Part 3 - Basic plotting
• Part 4 - pandas (Python Data Analysis Library)
Ask!
The art and science of asking questions is the source of all knowledge.
- Thomas Berger
• Do not hesitate to ask!
• During exercises (you can also ask others).
Image by mohamed Hassan from Pixabay
Now let me ask something..
• Why do you want to learn Python/programming?
• What would you use Python for?
Failure
• Coding is all about trial and error.
• Don't be afraid of it.
• Error messages aren't scary, they are useful.
Python natalensis by A. Smith on Wikimedia Commons
History
• Started by Guido Van
Rossum as a hobby
• Now widely spread
• Open Source! Free!
• Versatile
Guido Van Rossum
by Doc Searls on
Flickr CC-BY-SA
Python today
• Developed a large and active scientific computing and data analysis
community
• Now one of the most important languages for
• Data science
• Machine learning
• General software development
• Packages: NumPy, pandas, matplotlib, SciPy, scikit-learn, statsmodels
2 Modes
1. IPython
Python can be run interactively
Used extensively in research
2. Python scripts
What if we want to run more than a few lines of code?
Then we must write text files in .py
Noteable (Jupyter notebooks)
• Easy to use environment
• Web-based
• Combines both text and code
into one
• Come with a great number of
useful packages
1. Start Noteable
2. Clone GitRepo(recommended)
3. Starting a notebook
4. Toolbar
Save
New block
Cut, copy
paste
Move block
Stop
execution
Reset block
And clear output
Block type
5. Download files
6. Kernel/Restart & Clear output
7. Edit/Delete Cell
8. File/ Close & Halt
9. Create a folder 10.Rename
11. Upload files
Running blocks
• By pressing the Run button
• Shift + Enter – runs block
• Alt + Enter – creates a new block
Other operations
• File/Save and Checkpoint
• File/Revert to Checkpoint
• Tab completion
• Introspection
Let us start
To follow along, you need to open your own notebook. But please try to
keep up with my presentation, as you still have time for exercises during
the teaching.
Thank you for attending!
• You can continue to access the ‘Python for Data Science’ Learn course
and notebooks after the course.
• There are solution notebooks for all the topics we have covered
today, plus notebooks covering additional topics (text analysis, signal
processing, regular expressions, network analysis, machine learning &
Conway’s game of life).
• Visit the Digital Skills Framework to find more Python learning
resources: https://www.digitalskills.ed.ac.uk/

Contenu connexe

Similaire à Python-data-science.pptx

OpenFest 2012 : Leveraging the public internet
OpenFest 2012 : Leveraging the public internetOpenFest 2012 : Leveraging the public internet
OpenFest 2012 : Leveraging the public internet
tkisason
 
What's With The 1S And 0S? Making Sense Of Binary Data At Scale With Tika And...
What's With The 1S And 0S? Making Sense Of Binary Data At Scale With Tika And...What's With The 1S And 0S? Making Sense Of Binary Data At Scale With Tika And...
What's With The 1S And 0S? Making Sense Of Binary Data At Scale With Tika And...
gagravarr
 
Welcome to the Brixton Library Technology Initiative
Welcome to the Brixton Library Technology InitiativeWelcome to the Brixton Library Technology Initiative
Welcome to the Brixton Library Technology Initiative
Basil Bibi
 
E-Learning Contents Producing Training Program for Trainees from Iran
E-Learning Contents Producing Training Program for Trainees from Iran E-Learning Contents Producing Training Program for Trainees from Iran
E-Learning Contents Producing Training Program for Trainees from Iran
Hori Masumi
 

Similaire à Python-data-science.pptx (20)

Learn to Code with MIT App Inventor ( PDFDrive ).pdf
Learn to Code with MIT App Inventor ( PDFDrive ).pdfLearn to Code with MIT App Inventor ( PDFDrive ).pdf
Learn to Code with MIT App Inventor ( PDFDrive ).pdf
 
Introduction to Text Mining
Introduction to Text MiningIntroduction to Text Mining
Introduction to Text Mining
 
Using the Cloud to your Advantage
Using the Cloud to your AdvantageUsing the Cloud to your Advantage
Using the Cloud to your Advantage
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
PyCourse - Self driving python course
PyCourse - Self driving python coursePyCourse - Self driving python course
PyCourse - Self driving python course
 
5 Thoughts on Staying Sharp and Relevant (Chicago)
5 Thoughts on Staying Sharp and Relevant (Chicago)5 Thoughts on Staying Sharp and Relevant (Chicago)
5 Thoughts on Staying Sharp and Relevant (Chicago)
 
PyTorch 04 What's New in PyTorch Land
PyTorch 04 What's New in PyTorch LandPyTorch 04 What's New in PyTorch Land
PyTorch 04 What's New in PyTorch Land
 
core python.pdf
core python.pdfcore python.pdf
core python.pdf
 
SHAREmodule2
SHAREmodule2SHAREmodule2
SHAREmodule2
 
Python as the Zen of Data Science
Python as the Zen of Data SciencePython as the Zen of Data Science
Python as the Zen of Data Science
 
Working Effectively with Routine Tasks
Working Effectively with Routine TasksWorking Effectively with Routine Tasks
Working Effectively with Routine Tasks
 
OpenFest 2012 : Leveraging the public internet
OpenFest 2012 : Leveraging the public internetOpenFest 2012 : Leveraging the public internet
OpenFest 2012 : Leveraging the public internet
 
What's With The 1S And 0S? Making Sense Of Binary Data At Scale With Tika And...
What's With The 1S And 0S? Making Sense Of Binary Data At Scale With Tika And...What's With The 1S And 0S? Making Sense Of Binary Data At Scale With Tika And...
What's With The 1S And 0S? Making Sense Of Binary Data At Scale With Tika And...
 
What's with the 1s and 0s? Making sense of binary data at scale with Tika and...
What's with the 1s and 0s? Making sense of binary data at scale with Tika and...What's with the 1s and 0s? Making sense of binary data at scale with Tika and...
What's with the 1s and 0s? Making sense of binary data at scale with Tika and...
 
Welcome to the Brixton Library Technology Initiative
Welcome to the Brixton Library Technology InitiativeWelcome to the Brixton Library Technology Initiative
Welcome to the Brixton Library Technology Initiative
 
Textpy
TextpyTextpy
Textpy
 
Computational workflows for omics analyses at the IARC
Computational workflows for omics analyses at the IARCComputational workflows for omics analyses at the IARC
Computational workflows for omics analyses at the IARC
 
python presntation 2.pptx
python presntation 2.pptxpython presntation 2.pptx
python presntation 2.pptx
 
Cloud ppt
Cloud pptCloud ppt
Cloud ppt
 
E-Learning Contents Producing Training Program for Trainees from Iran
E-Learning Contents Producing Training Program for Trainees from Iran E-Learning Contents Producing Training Program for Trainees from Iran
E-Learning Contents Producing Training Program for Trainees from Iran
 

Plus de KabileshCm (8)

ROBOTICS APPLICATIONS of Electronics.pptx
ROBOTICS APPLICATIONS of Electronics.pptxROBOTICS APPLICATIONS of Electronics.pptx
ROBOTICS APPLICATIONS of Electronics.pptx
 
Presentation On Machine Learning greator.pptx
Presentation On Machine Learning greator.pptxPresentation On Machine Learning greator.pptx
Presentation On Machine Learning greator.pptx
 
STUDENTS ATTENDANCE USING FACE RECOGNITION-1.pptx
STUDENTS ATTENDANCE USING FACE RECOGNITION-1.pptxSTUDENTS ATTENDANCE USING FACE RECOGNITION-1.pptx
STUDENTS ATTENDANCE USING FACE RECOGNITION-1.pptx
 
project[1].pdf
project[1].pdfproject[1].pdf
project[1].pdf
 
Application Development for the Internet of Things.pptx
Application Development for the Internet of Things.pptxApplication Development for the Internet of Things.pptx
Application Development for the Internet of Things.pptx
 
neural.ppt
neural.pptneural.ppt
neural.ppt
 
Lecture6.ppt
Lecture6.pptLecture6.ppt
Lecture6.ppt
 
background.pptx
background.pptxbackground.pptx
background.pptx
 

Dernier

Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion pills in Kuwait Cytotec pills in Kuwait
 
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
amitlee9823
 
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
instagramfab782445
 
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
amitlee9823
 
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
gajnagarg
 
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
amitlee9823
 
Just Call Vip call girls diu Escorts ☎️9352988975 Two shot with one girl (diu )
Just Call Vip call girls diu Escorts ☎️9352988975 Two shot with one girl (diu )Just Call Vip call girls diu Escorts ☎️9352988975 Two shot with one girl (diu )
Just Call Vip call girls diu Escorts ☎️9352988975 Two shot with one girl (diu )
gajnagarg
 
ab-initio-training basics and architecture
ab-initio-training basics and architectureab-initio-training basics and architecture
ab-initio-training basics and architecture
saipriyacoool
 
How to Build a Simple Shopify Website
How to Build a Simple Shopify WebsiteHow to Build a Simple Shopify Website
How to Build a Simple Shopify Website
mark11275
 
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
amitlee9823
 
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
nirzagarg
 

Dernier (20)

Hire 💕 8617697112 Meerut Call Girls Service Call Girls Agency
Hire 💕 8617697112 Meerut Call Girls Service Call Girls AgencyHire 💕 8617697112 Meerut Call Girls Service Call Girls Agency
Hire 💕 8617697112 Meerut Call Girls Service Call Girls Agency
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
 
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
 
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
 
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
 
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
 
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
 
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
 
Just Call Vip call girls diu Escorts ☎️9352988975 Two shot with one girl (diu )
Just Call Vip call girls diu Escorts ☎️9352988975 Two shot with one girl (diu )Just Call Vip call girls diu Escorts ☎️9352988975 Two shot with one girl (diu )
Just Call Vip call girls diu Escorts ☎️9352988975 Two shot with one girl (diu )
 
ab-initio-training basics and architecture
ab-initio-training basics and architectureab-initio-training basics and architecture
ab-initio-training basics and architecture
 
How to Build a Simple Shopify Website
How to Build a Simple Shopify WebsiteHow to Build a Simple Shopify Website
How to Build a Simple Shopify Website
 
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
 
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
 
The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024
 
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
 
Jordan_Amanda_DMBS202404_PB1_2024-04.pdf
Jordan_Amanda_DMBS202404_PB1_2024-04.pdfJordan_Amanda_DMBS202404_PB1_2024-04.pdf
Jordan_Amanda_DMBS202404_PB1_2024-04.pdf
 
Q4-W4-SCIENCE-5 power point presentation
Q4-W4-SCIENCE-5 power point presentationQ4-W4-SCIENCE-5 power point presentation
Q4-W4-SCIENCE-5 power point presentation
 

Python-data-science.pptx

  • 2. Structure • Part 1 - Introduction, recap & warm-up exercises • Part 2 - NumPy (Numerical Python) • Part 3 - Basic plotting • Part 4 - pandas (Python Data Analysis Library)
  • 3. Ask! The art and science of asking questions is the source of all knowledge. - Thomas Berger • Do not hesitate to ask! • During exercises (you can also ask others). Image by mohamed Hassan from Pixabay
  • 4. Now let me ask something.. • Why do you want to learn Python/programming? • What would you use Python for?
  • 5. Failure • Coding is all about trial and error. • Don't be afraid of it. • Error messages aren't scary, they are useful.
  • 6. Python natalensis by A. Smith on Wikimedia Commons
  • 7. History • Started by Guido Van Rossum as a hobby • Now widely spread • Open Source! Free! • Versatile Guido Van Rossum by Doc Searls on Flickr CC-BY-SA
  • 8. Python today • Developed a large and active scientific computing and data analysis community • Now one of the most important languages for • Data science • Machine learning • General software development • Packages: NumPy, pandas, matplotlib, SciPy, scikit-learn, statsmodels
  • 9. 2 Modes 1. IPython Python can be run interactively Used extensively in research 2. Python scripts What if we want to run more than a few lines of code? Then we must write text files in .py
  • 10. Noteable (Jupyter notebooks) • Easy to use environment • Web-based • Combines both text and code into one • Come with a great number of useful packages
  • 12.
  • 14. 3. Starting a notebook
  • 15. 4. Toolbar Save New block Cut, copy paste Move block Stop execution Reset block And clear output Block type
  • 17. 6. Kernel/Restart & Clear output
  • 19. 8. File/ Close & Halt
  • 20. 9. Create a folder 10.Rename
  • 22. Running blocks • By pressing the Run button • Shift + Enter – runs block • Alt + Enter – creates a new block
  • 23. Other operations • File/Save and Checkpoint • File/Revert to Checkpoint • Tab completion • Introspection
  • 24. Let us start To follow along, you need to open your own notebook. But please try to keep up with my presentation, as you still have time for exercises during the teaching.
  • 25. Thank you for attending! • You can continue to access the ‘Python for Data Science’ Learn course and notebooks after the course. • There are solution notebooks for all the topics we have covered today, plus notebooks covering additional topics (text analysis, signal processing, regular expressions, network analysis, machine learning & Conway’s game of life). • Visit the Digital Skills Framework to find more Python learning resources: https://www.digitalskills.ed.ac.uk/

Notes de l'éditeur

  1. - Welcome and thank you for coming - Introduction - aims: -- introduce fundamentals -- build up confidence for self-study!!! Not as scary as the real-world version - assumptions: -- basic high-school maths -- no prior experience in coding CC-BY Digital Skills Team at the University of Edinburgh www.ed.ac.uk/is/skills
  2. All of us learn through asking and being curious more of a conversation - don't hesitate to stop me and ask
  3. make notes
  4. You might fail 5 times while doing something but in the end you will understand how it works and be able to replicate it
  5. - Started by Guido Van Rossum as a hobby over the Christmas vacation. - named after Monty Python's Flying Circus - First released in 1991, loved by Unix scripters - Now transformed into the most popular interpreted language. You can build anything with it! - Facts! Python was the most used language in 2016 and still most likely is!
  6. Why choose it instead of MATLAB, R, SAS, Stata and others? - It is free and open source - Intuitive and easy to learn - Extremely versatile – examples – websites, planes, robots, data - Large and friendly community - packages Very important in industry and academia
  7. Python has 2 modes of running - IPython stands for Interactive Python Python can be interpreted – good for a calculator Live demo!
  8. We will be using Noteable, just another service Jupyter Notebooks. It is free and open source Web environment focused at Python Easy to use – nice gui and no setup required Block based. Has blocks which execute the code within it. Single type only Allows to combine text and code into same page. Helps with readability
  9. start noteable from learn - Link at the top of homepage Agree on personal data usage You don't have to share anything
  10. Probably enter myed login details Then press start on noteable homepage
  11. Start a notebook by clicking on it. Notebook 0 is an environment introduction. Skip that, open notebook 1 Make sure that everybody is ready
  12. Autosave
  13. We need to make a course folder Then rename it to Introduction to Python or whatever Then go into that folder
  14. Make sure that you are inside that folder
  15. Run button but its best with shortcut Shift + Return/Enter Alt + Return/Enter which creates a new block after the on you are currently on.
  16. Checkpoints are useful! You can download it as multiple different things: Notebook Python script pdf