text_html_output_1.png
import pandas as pd

hotel = pd.read_csv('../input/hotel-booking-demand/hotel_bookings.csv')

hotel = hotel.drop(['agent', 'company'], axis=1)

confirmed_bookings = hotel[hotel.is_canceled == '0']

confirmed_bookings['arrival_date_year'] = hotel['arrival_date_year']
Last = confirmed_bookings['arrival_date_year'].value_counts().sort_index()
Last