Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn Python by Building Data Science Applications

You're reading from   Learn Python by Building Data Science Applications A fun, project-based guide to learning Python 3 while building real-world apps

Arrow left icon
Product type Paperback
Published in Aug 2019
Publisher Packt
ISBN-13 9781789535365
Length 482 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Philipp Kats Philipp Kats
Author Profile Icon Philipp Kats
Philipp Kats
David Katz David Katz
Author Profile Icon David Katz
David Katz
Arrow right icon
View More author details
Toc

Table of Contents (26) Chapters Close

Preface 1. Section 1: Getting Started with Python
2. Preparing the Workspace FREE CHAPTER 3. First Steps in Coding - Variables and Data Types 4. Functions 5. Data Structures 6. Loops and Other Compound Statements 7. First Script – Geocoding with Web APIs 8. Scraping Data from the Web with Beautiful Soup 4 9. Simulation with Classes and Inheritance 10. Shell, Git, Conda, and More – at Your Command 11. Section 2: Hands-On with Data
12. Python for Data Applications 13. Data Cleaning and Manipulation 14. Data Exploration and Visualization 15. Training a Machine Learning Model 16. Improving Your Model – Pipelines and Experiments 17. Section 3: Moving to Production
18. Packaging and Testing with Poetry and PyTest 19. Data Pipelines with Luigi 20. Let's Build a Dashboard 21. Serving Models with a RESTful API 22. Serverless API Using Chalice 23. Best Practices and Python Performance 24. Assessments 25. Other Books You May Enjoy

Pre-flight check

Before we proceed to the content of this book, let's ensure our code can actually be executed by running the simplest possible code in Jupyter. To do this, let's create a test notebook and run some code to ensure everything works as intended. Click on the Python 3 square in the Notebook section. A new tab should open, called Untitled.ipynb.

First, the blue line highlighted represents the selected cell in the notebook. Each cell represents a separate snippet of code, which is executed simultaneously in one step. Let's write our very first line of code in this cell:

print('Hello world')

Now, hit Shift + Enter. This shortcut executes the selected cells in Python and outputs the result on the next line. It also automatically creates a new input cell if there are none, as shown in the following screenshot. The number on the left gives a hint...

You have been reading a chapter from
Learn Python by Building Data Science Applications
Published in: Aug 2019
Publisher: Packt
ISBN-13: 9781789535365
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime