SlideShare a Scribd company logo
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/

More Related Content

Similar to Python-data-science.pptx

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
NemoPalleschi
 
Introduction to Text Mining
Introduction to Text MiningIntroduction 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
stantons
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
sanket shah
 
PyCourse - Self driving python course
PyCourse - Self driving python coursePyCourse - Self driving python course
PyCourse - Self driving python course
Eran Shlomo
 
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)
Scott Lowe
 
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
Sam Witteveen
 
core python.pdf
core python.pdfcore python.pdf
core python.pdf
UmmeHabibaMAGINMANI
 
SHAREmodule2
SHAREmodule2SHAREmodule2
SHAREmodule2
Lynne Thomas
 
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
Travis Oliphant
 
Working Effectively with Routine Tasks
Working Effectively with Routine TasksWorking Effectively with Routine Tasks
Working Effectively with Routine Tasks
Ivan Katunou
 
OpenFest 2012 : Leveraging the public internet
OpenFest 2012 : Leveraging the public internetOpenFest 2012 : Leveraging the public internet
OpenFest 2012 : Leveraging the public internettkisason
 
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
 
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
 
Textpy
TextpyTextpy
Textpy
Dirk Roorda
 
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
Matthieu Foll
 
python presntation 2.pptx
python presntation 2.pptxpython presntation 2.pptx
python presntation 2.pptx
Arpittripathi45
 
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
 

Similar to 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
 

More from KabileshCm

ROBOTICS APPLICATIONS of Electronics.pptx
ROBOTICS APPLICATIONS of Electronics.pptxROBOTICS APPLICATIONS of Electronics.pptx
ROBOTICS APPLICATIONS of Electronics.pptx
KabileshCm
 
Presentation On Machine Learning greator.pptx
Presentation On Machine Learning greator.pptxPresentation On Machine Learning greator.pptx
Presentation On Machine Learning greator.pptx
KabileshCm
 
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
KabileshCm
 
project[1].pdf
project[1].pdfproject[1].pdf
project[1].pdf
KabileshCm
 
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
KabileshCm
 
neural.ppt
neural.pptneural.ppt
neural.ppt
KabileshCm
 
Lecture6.ppt
Lecture6.pptLecture6.ppt
Lecture6.ppt
KabileshCm
 
background.pptx
background.pptxbackground.pptx
background.pptx
KabileshCm
 

More from 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
 

Recently uploaded

vernacular architecture in response to climate.pdf
vernacular architecture in response to climate.pdfvernacular architecture in response to climate.pdf
vernacular architecture in response to climate.pdf
PrabhjeetSingh219035
 
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Mansi Shah
 
Mohannad Abdullah portfolio _ V2 _22-24
Mohannad Abdullah  portfolio _ V2 _22-24Mohannad Abdullah  portfolio _ V2 _22-24
Mohannad Abdullah portfolio _ V2 _22-24
M. A. Architect
 
Let's Summon Demons Shirt Let's Summon Demons Shirt
Let's Summon Demons Shirt Let's Summon Demons ShirtLet's Summon Demons Shirt Let's Summon Demons Shirt
Let's Summon Demons Shirt Let's Summon Demons Shirt
TeeFusion
 
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
708pb191
 
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
7sd8fier
 
Transforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting ProfitabilityTransforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting Profitability
aaryangarg12
 
RTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,DRTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,D
cy0krjxt
 
Portfolio.pdf
Portfolio.pdfPortfolio.pdf
Portfolio.pdf
garcese
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
smpc3nvg
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
ameli25062005
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
Expert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting ServicesExpert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting Services
ResDraft
 
Top Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdfTop Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdf
PlanitIsrael
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
7sd8fier
 
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
h7j5io0
 
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
gpffo76j
 
White wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva TschoppWhite wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva Tschopp
Mansi Shah
 
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
taqyed
 

Recently uploaded (20)

vernacular architecture in response to climate.pdf
vernacular architecture in response to climate.pdfvernacular architecture in response to climate.pdf
vernacular architecture in response to climate.pdf
 
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
 
Mohannad Abdullah portfolio _ V2 _22-24
Mohannad Abdullah  portfolio _ V2 _22-24Mohannad Abdullah  portfolio _ V2 _22-24
Mohannad Abdullah portfolio _ V2 _22-24
 
Let's Summon Demons Shirt Let's Summon Demons Shirt
Let's Summon Demons Shirt Let's Summon Demons ShirtLet's Summon Demons Shirt Let's Summon Demons Shirt
Let's Summon Demons Shirt Let's Summon Demons Shirt
 
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
 
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
 
Transforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting ProfitabilityTransforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting Profitability
 
RTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,DRTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,D
 
Portfolio.pdf
Portfolio.pdfPortfolio.pdf
Portfolio.pdf
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
Expert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting ServicesExpert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting Services
 
Top Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdfTop Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdf
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
 
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
一比一原版(Bolton毕业证书)博尔顿大学毕业证成绩单如何办理
 
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
 
White wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva TschoppWhite wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva Tschopp
 
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
 

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/

Editor's Notes

  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