text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_theme(style='whitegrid')

df = pd.read_csv('../input/hotel-booking/hotel_booking.csv')

df.shape

df = df.drop('company', axis=1)

ind = df['adr'].idxmax()
ind

name = df.iloc[ind]['name']
amount = df.iloc[ind]['adr']

idx = (df['children'] + df['babies']).idxmax()
maximum = (df['children'] + df['babies']).iloc[idx]

fig = plt.figure ( figsize = (10,5))
ax1 = fig.add_axes ([0,0,1,1])
ax2 = fig.add_axes ([0.75,0,1,1])
sns.countplot(data=df, x='arrival_date_month', ax=ax1, 
              hue='arrival_date_year', order=df['arrival_date_month'].value_counts().index, palette="Set1")

years = dict(df['arrival_date_year'].value_counts())
ax2.pie(x=list(years.values()), labels=list(years.keys()), explode=[0.03]*3, autopct='%1.1f', shadow=True);

plt.figure(figsize=(13, 8))
sns.countplot(data=df, x='country', order=df['country'].value_counts().keys(), palette='Set2').set_xlim(0, 9)
plt.show()