Skip to content

Public notebooks and datasets to accompany the Data Analysis with Polars course on Udemy

License

Notifications You must be signed in to change notification settings

braaannigan/data-analysis-with-polars

Repository files navigation

This repository contains public notebooks and datasets to accompany my Data Analysis with Polars course on Udemy.

If you want to join me on the course please use this referral link for a 50% discount: https://www.udemy.com/course/data-analysis-with-polars/?couponCode=POLARS_HALF_PRICE

For a general introduction to Polars see this workshop I lead on youtube and the workshop materials in the notebooks/ml directory of this repository.

Notebooks

Introduction

  • intro/00-KeyConcepts.ipynb - an introduction to the big ideas behind Polars
  • intro/02-LazyPolarsIntro.ipynb - an introduction to lazy mode in Polars

Filtering rows

  • filtering_rows/02-SelectingRowsFilter.ipynb - a key lecture where we learn how to use the Expression API to filter rows in Polars

Time series

  • time_series/01-IntroTimeSeries.ipynb - the time series dtypes in Polars
  • time_series/02-TimeZones.ipynb - converting between time zones in Polars

Machine learning

  • ml/CatboostElectricityForecasting.ipynb - introductory notebook with a simple example of using Polars with Catboost to forecast electricity demand

Want to know more about Polars for high performance data science and ML? Then you can:

Installation instructions

Binder

I recommend cloning the repository and runnng the notebooks locally on your computer. However, you can run the notebooks interactively using binder by clicking the following link:

Binder

Docker

I run the code using docker. If you have docker installed then you:

Install with pip

Mac OS

  • Run the pip-deploy.sh script
  • Activate the virtual environment with source course_env/bin/activate
  • Confirm the virtual environment is activated with which python. The output should end with course_env/bin/python
  • Start the Jupyter notebooks with jupyter lab. This will either open the notebook in your browser or print a URL that you can use to open the notebook in your browser
  • Check your installation by opening notebooks/TestInstallation.ipynb

Windows

  • Open powershell in this directory
  • Run the powershell script create-course-environment.ps1
  • Run the powershell script activate-course-environment.ps1
  • Confirm that the virtual environment is working: it should say course_env at the start of your powershell prompt
  • Run: jupyter lab
  • Check your installation by opening notebooks/TestInstallation.ipynb

About

Public notebooks and datasets to accompany the Data Analysis with Polars course on Udemy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages