ardifarizky commited on
Commit
4c37034
1 Parent(s): bf25a3d

Update eda.py

Browse files
Files changed (1) hide show
  1. eda.py +4 -4
eda.py CHANGED
@@ -31,16 +31,16 @@ def run():
31
  fig, ax = plt.subplots(nrows=2, ncols=2, figsize=(12, 10))
32
 
33
  sns.histplot(data=d, x='lead_time', hue='hotel', multiple='stack', bins=20, ax=ax[0, 0], palette='Set1')
34
- axes[0, 0].set_title("Booking Behavior by Hotel Type (Lead Time)")
35
 
36
  sns.barplot(data=d, x='hotel', y='is_canceled', ax=ax[0, 1], palette='Set1')
37
- axes[0, 1].set_title("Cancellation Rate by Hotel Type")
38
 
39
  sns.countplot(data=d, x='booking_changes', hue='hotel', ax=ax[1, 0], palette='Set1')
40
- axes[1, 0].set_title("Booking Changes by Hotel Type")
41
 
42
  sns.countplot(data=d, x='hotel', ax=ax[1, 1], palette='Set1')
43
- axes[1, 1].set_title("Total Bookings by Hotel Type")
44
 
45
 
46
  plt.tight_layout()
 
31
  fig, ax = plt.subplots(nrows=2, ncols=2, figsize=(12, 10))
32
 
33
  sns.histplot(data=d, x='lead_time', hue='hotel', multiple='stack', bins=20, ax=ax[0, 0], palette='Set1')
34
+ ax[0, 0].set_title("Booking Behavior by Hotel Type (Lead Time)")
35
 
36
  sns.barplot(data=d, x='hotel', y='is_canceled', ax=ax[0, 1], palette='Set1')
37
+ ax[0, 1].set_title("Cancellation Rate by Hotel Type")
38
 
39
  sns.countplot(data=d, x='booking_changes', hue='hotel', ax=ax[1, 0], palette='Set1')
40
+ ax[1, 0].set_title("Booking Changes by Hotel Type")
41
 
42
  sns.countplot(data=d, x='hotel', ax=ax[1, 1], palette='Set1')
43
+ ax[1, 1].set_title("Total Bookings by Hotel Type")
44
 
45
 
46
  plt.tight_layout()