Optimize your code#
- Why write functions?
- How to write a Python function
- Write Multi-Parameter Functions
- How to Define a Function with Multiple Parameters in Python
- Write a Function with Multiple Parameters in Python
- Call Custom Functions with Multiple Parameters in Python
- Combine Unit Conversion and Calculation of Statistics into One Function
- Define Optional Input Parameters for a Function
- Combine Download and Read Input of Data Files into One Function
- Practice Writing Multi-Parameter Functions for Pandas Dataframes
- Practice Writing Multi-Parameter Functions for Numpy Arrays
- Write Flexible Functions to Handle Messy Data
- Common Python exceptions