To tap into the power of Python's open data science stack - including NumPy, Pandas, Matplotlib, Scikit-Learn, and other tools - you first need to understand the syntax, semantics, and patterns of the Python language. This report provides a brief yet comprehensive introduction to Python for engineers, researchers, and data scientists who are already familiar with another programming language. Author Jake VanderPlas, an interdisciplinary research director at the University of Washington, explains Python's essential syntax and semantics, built-in data types and structures, function definitions, control flow statements, and more, using Python 3 syntax.
This open book is licensed under a Open Publication License (OPL). You can download A Whirlwind Tour of Python ebook for free in PDF format (3.4 MB).
Table of Contents
Using Code Examples
How to Run Python Code
A Quick Tour of Python Language Syntax
Basic Python Semantics: Variables and Objects
Basic Python Semantics: Operators
Built-In Types: Simple Values
Built-In Data Structures
Defining and Using Functions
Errors and Exceptions
Modules and Packages
String Manipulation and Regular Expressions
A Preview of Data Science Tools