Skip to main content

Live Code-Along: Predicting Hotel Booking Cancellations in Python


In this live training, we will build a machine learning model to predict whether or not a customer will cancel a hotel booking. We will walk through all steps of the machine learning process, from importing the data over preprocessing the data up to training a model and evaluating its performance. Filip will provide a template workspace for you so you can easily follow along as he’s coding up the model.

Key Takeaways:

  • Familiarize yourself with the different steps in building a classification model.

  • How to import data using pandas and explore it using plotly

  • How to preprocess data and train a classification model on it using scikit-learn

  • Calculate and assess the performance of a classification model

Access this notebook using the following link

Access the session's slides here

Filip Schouwenaars Headshot
Filip Schouwenaars

VP of Engineering DataCamp DataLab

Data science educator and enthusiast, leading the development of DataLab
View More Webinars

Recommended Content

Setting Up Your Python Environment

Learn to install common tools to work with Python, including Anaconda and git.


DataCamp Workspace Live Code-Along

Hands-on session: What is DataCamp Workspace, and how can you use it?


DataCamp in Action — Data Upskilling for Your Organization

Learn how 2,500+ Businesses are using DataCamp to close their team’s skill gaps


Hands-on learning experience

Companies using DataCamp achieve course completion rates 6X higher than traditional online course providers

Learn More

Upskill your teams in data science and analytics

Learn More

Join 2,500+ companies and 80% of the Fortune 1000 who use DataCamp to upskill their teams.

Don’t just take our word for it.