0% found this document useful (0 votes)
144 views25 pages

Python for Data Science Overview

This document provides an overview and introduction to learning Python for data science. It outlines the structure of the course, which covers NumPy, basic plotting, pandas, and other key Python packages. It encourages asking questions and discusses why people learn Python and how it is used for data science tasks like machine learning. Brief histories of Python and Jupyter notebooks are also presented. The document concludes by explaining how to get started with Jupyter notebooks for interactive Python coding.

Uploaded by

shabir Ahmad
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
144 views25 pages

Python for Data Science Overview

This document provides an overview and introduction to learning Python for data science. It outlines the structure of the course, which covers NumPy, basic plotting, pandas, and other key Python packages. It encourages asking questions and discusses why people learn Python and how it is used for data science tasks like machine learning. Brief histories of Python and Jupyter notebooks are also presented. The document concludes by explaining how to get started with Jupyter notebooks for interactive Python coding.

Uploaded by

shabir Ahmad
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
  • Introduction to Python
  • Part 1 - Introduction, Recap & Warm-up Exercises
  • Part 2 - NumPy (Numerical Python)
  • Part 3 - Basic Plotting
  • Part 4 - Pandas (Python Data Analysis Library)
  • Conclusion and Resources

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 Guido Van Rossum
by Doc Searls
Rossum as a hobby on Flickr CC-BY-SA

• Now widely spread


• Open Source! Free!
• Versatile
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

Stop
Save Cut, copy execution Block type
paste
New block Move block Reset block
And clear output
5. Download files
6. Kernel/Restart & Clear output 
7. Edit/Delete Cell 
8. File/ Close & Halt
9. Create a folder                          [Link]
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: [Link]

For Data Science
Structure
• Part 1 - Introduction, recap & warm-up exercises
• Part 2 - NumPy (Numerical Python)
• Part 3 - Basic plotting
•
Ask!
The art and science of asking questions is the source of all knowledge.
- Thomas Berger
• Do not hesitate to ask!
• Duri
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 n (https://commons.wikimedia.org/wiki/File:Python_natalensis_Smith_1840.jpg)atalensis by A. Smith  (https://commons.wi
History
• Started by Guido Van 
Rossum as a hobby
• Now widely spread
• Open Source! Free!
• Versatile
Guido Van Rossum 
by D
Python today
• Developed a large and active scientific computing and data analysis 
community
• Now one of the most important
2 Modes
1. IPython
Python can be run interactively
Used extensively in research
2.   Python scripts
What if we want to run mo
Noteable (Jupyter notebooks)
• Easy to use environment
• Web-based
• Combines both text and code 
into one
• Come with a grea

You might also like