Python Training for Scientists and Engineers (PYT401)
Learn Python for scientific and engineering work: core syntax, functions, files, OOP, testing, and data tools like NumPy, SciPy, pandas, matplotlib, and Jupyter
Register or Request Training
- Private class for your team
- Live expert instructor
- Online or on‑location
- Customizable agenda
- Proposal responses same day as request
Course Overview
This course builds practical Python skills for scientific and engineering workflows, from core language fundamentals through common tools used for data processing and analysis.
You will learn to write and run scripts; use flow control, sequences, dictionaries, and functions; work with files and operating system services; and structure code with modules, packages, and classes. The course also introduces development practices such as linting, unit testing, debugging, benchmarking, and profiling.
To support real-world data tasks, you will work with spreadsheets, XML, and JSON, and explore interactive computing with iPython and Jupyter. The scientific Python stack is covered with NumPy, SciPy, pandas, and matplotlib for efficient computation, data wrangling, and visualization.
Course Benefits
- Create and run Python scripts using the interpreter and command line.
- Use core language features: variables, strings, numbers, flow control, sequences, dictionaries, sets, and functions.
- Read and write files, including working with raw/binary data.
- Handle errors using Python exception-handling constructs.
- Organize code with modules, packages, and object-oriented classes.
- Apply developer tooling such as
pylint,unittest, debugging, benchmarking, and profiling. - Work with common data formats including Excel spreadsheets, XML, and JSON.
- Use iPython and Jupyter for interactive exploration and what-if analysis.
- Manipulate arrays with
NumPyand understand keySciPycapabilities. - Use
pandasto structure, read/write, merge, and analyze tabular data. - Create and customize visualizations with
matplotlib.
Delivery Methods
Delivered for your team at your site or online.
Course Outline
- The Python Environment
- Starting Python
- Using the Interpreter
- Running a Python Script
- Python Scripts on Unix
- Python Scripts on Windows
- Python Editors and IDEs
- Getting Started
- Using Variables
- Built-in Functions
- Strings
- Numbers
- Converting among Types
- Writing to the Screen
- String Formatting
- Command Line Parameters
- Flow Control
- About Flow Control
- What's with the White Space?
- if and else
- Conditional Expressions
- Relational Operators
- Boolean Operators
- while Loops
- Alternate Ways to Exit a Loop
- Lists and Tuples
- About Sequences
- Lists
- Tuples
- Indexing and Slicing
- Iterating through a Sequence
- Functions for All Sequences
- Operators and Keywords for Sequences
- Nested Sequences
- List Comprehensions
- Generator Expressions
- Working with Files
- Text file I/O
- Opening a Text File
- Reading a Text File
- Writing to a Text File
- "Binary" (Raw, or Non-delimited) Data
- Dictionaries and Sets
- About Dictionaries
- When to Use Dictionaries
- Creating Dictionaries
- Iterating through a Dictionary
- About Sets
- Creating Sets
- Working with Sets
- Functions
- Defining a Function
- Function Parameters
- Variable Scope
- Returning Values
- Lambda Functions
- Exception Handling
- Syntax Errors
- Exceptions
- Handling Exceptions with Try
- Handling Multiple Exceptions
- Handling Generic Exceptions
- Ignoring Exceptions
- Using else
- Cleaning Up with finally
- Re-raising Exceptions
- Raising a New Exception
- OS Services
- The os Module
- Environment Variables
- Launching External Commands
- Paths, Directories, and Filenames
- Walking Directory Trees
- Dates and Times
- Modules and Packages
- Initialization code
- Namespaces
- Executing modules as scripts
- Documentation
- Packages and name resolution
- Naming conventions
- Using imports
- Classes
- Defining Classes
- Constructors
- Instance methods and data
- Attributes
- Inheritance
- Multiple Inheritance
- Programmer Tools
- Program Development
- Comments
- pylint
- Customizing pylint
- Unit Testing
- The unittest Module
- Creating a Test Class
- Establishing Success or Failure
- Startup and Cleanup
- Running the Tests
- Debugging
- Benchmarking
- Profiling Applications
- Excel Spreadsheets
- openpyxl module
- Reading an Existing Spreadsheet
- Creating a Spreadsheet
- Modifying a Spreadsheet
- XML and JSON
- Creating XML Files
- Parsing XML
- Tags and XPath
- Reading and Writing JSON
- iPython and Jupyter
- About iPython and Jupyter
- iPython Basics
- Jupyter Basics
- NumPy
- Python's scientific Stack
- NumPy Overview
- Creating Arrays
- Creating Ranges
- Working with Arrays
- Shapes
- Slicing and Indexing
- Indexing with booleans
- Stacking
- Iterating
- Tricks with Arrays
- Matrices
- Data Types
- NumPy Functions
- SciPy
- About SciPy
- SciPy Packages
- SciPy Examples
- pandas
- About pandas
- Series
- DataFrames
- Reading and Writing Data
- Indexing and Slicing
- Merging and Joining Data Sets
- matplotlib
- Creating a plot
- Commonly Used Plots
- Customizing Styles
- Ad hoc data visualization
- Advanced Usage
- Saving Images
Class Materials
Each student receives a comprehensive set of materials, including course notes and all class examples.
Class Prerequisites
Experience in the following would be useful for this Python class:
- Programming experience is helpful.
- Comfort working with files and folders and using the command line is recommended.
Have questions about this course?
We can help with curriculum details, delivery options, pricing, or anything else. Reach out and we’ll point you in the right direction.
