Welcome to the Python for Actuaries course repository! This repository contains all the Jupyter Notebooks used throughout the course, covering Python fundamentals, data analysis, visualization, and machine learning with a focus on actuarial applications.
The course is divided into five key sections:
-
Python Basics:
- Variables, control structures, and functions.
- Working with basic data types such as numbers, strings, and booleans.
- Understanding conditional statements and loops.
-
Data Structures & File Operations:
- Lists, tuples, sets, and dictionaries.
- Reading and writing files (e.g., .txt, .csv).
- Practical exercises on manipulating files and data structures.
-
Data Analysis with Pandas:
- Introduction to Pandas: Series and DataFrames.
- Loading, filtering, and sorting data.
- Data cleaning and manipulation techniques.
-
Data Visualization with Matplotlib:
- Creating basic plots: line, bar, and pie charts.
- Advanced visualizations such as scatterplots and histograms.
- Practical examples using insurance-related data.
-
Introduction to Machine Learning:
- Basics of machine learning with scikit-learn.
- Building simple classification and regression models.
- Applying machine learning models to actuarial datasets.
This repository has a second branch, with the completed notebooks, e.g. all exercises solved and all missing code added. You can find it under: Completed Branch
To get started with the notebooks, you can either clone this repository locally or use one of the following platforms for running the notebooks in your browser without any local installation:
- Open Google Colab.
- Click on the
GitHub
tab. - Paste the URL of this repository and open any notebook to start working.
- Go to Kaggle.
- Navigate to "Notebooks" and create a new notebook.
- Under "File," select "Import from GitHub" and paste the repository URL.
- Click the green "Code" button in this repository.
- Select "Open with Codespaces" to launch the environment directly in your browser.
If you prefer to run the notebooks locally, follow these steps:
- Clone this repository to your local machine:
git clone https://github.com/your-username/your-repo-name.git
- Install Python and Jupyter.
- Install the necessary packages:
pip install matplotlib numpy pandas scikit-learn seaborn
- Run Jupyter notebooks:
jupyter notebook
- Open the desired
.ipynb
file from the course materials.
This project is licensed under the GNU General Public License v3.0. You can find the full license text in the LICENSE
file.