Learn practical skills, build real-world projects, and advance your career

Hotel booking demand

Have you ever wondered when the best time of year to book a hotel room is? Or the optimal length of stay in order to get the best daily rate? What if you wanted to predict whether or not a hotel was likely to receive a disproportionately high number of special requests?

This hotel booking dataset can help you explore those questions!

The dataset used for this analysis was taken from https://www.kaggle.com/jessemostipak/hotel-booking-demand, although the data is originally from the article Hotel Booking Demand Datasets, written by Nuno Antonio, Ana Almeida, and Luis Nunes for Data in Brief, Volume 22, February 2019.

This data set contains booking information for a city hotel and a resort hotel, and includes information such as when the booking was made, length of stay, the number of adults, children, and/or babies, and the number of available parking spaces, among other things. Only the more interesting features to answer the questions of this project will be deployed.

Python is the programming language chosen to work on this data. Numpy and Pandas are the modules used for the data analysis, and Matplotlib and Seaborn are the ones to visualize and explore the data.

Downloading the Dataset

The data is originally from the article Hotel Booking Demand Datasets, written by Nuno Antonio, Ana Almeida, and Luis Nunes for Data in Brief, Volume 22, February 2019. Let's begin by downloading the data, and listing the files within the dataset using the opendatasets Python library.

!pip install jovian opendatasets --upgrade --quiet
# URL where the dataset is
dataset_url = 'https://www.kaggle.com/jessemostipak/hotel-booking-demand' 
import opendatasets as od
od.download(dataset_url)
Please provide your Kaggle credentials to download this dataset. Learn more: http://bit.ly/kaggle-creds Your Kaggle username: irenerrss11 Your Kaggle Key: ········
100%|██████████| 1.25M/1.25M [00:00<00:00, 27.3MB/s]
Downloading hotel-booking-demand.zip to ./hotel-booking-demand