diff --git a/index.html b/index.html index 1ce6b18..b804192 100644 --- a/index.html +++ b/index.html @@ -13116,6 +13116,7 @@
This winter, we're planning to take a trip to New York City! Everyone knows the cost of living there is sky-high, so we wanted to see if there was a way to find bargains.
+This winter, we're planning to take a trip to New York City! Everyone knows the cost of living there is sky-high, so naturally, we wanted to see if there was a way to find bargains. One popular option? Airbnb!
Airbnb is a shared economy platform for people to offer their own housing for travellers. Since 2008, it has grown in popularity and has become ubiquitous in travelling options, becoming a large competitor in the hotel industry.
-Pricing an Airbnb becomes challenging. You need to figure out your amenities, and how valuable they are compared to other offered amenities in the area. In a large metropolitan area, such as New York, homeowners need to be able to price their property at a competitve price to make a profit. In this tutorial, we look at Airbnb data from New York City and try to figure out if there are predictors for price.
+Pricing an Airbnb is challenging. There are all kinds of features that could factor into an Airbnb's price - its proximity to popular locations, amenities, size, etc. We want to know what features contribute to price, and whether we can find outliers (bargains or ripoffs).
+We hope this exploration could be useful for fellow travelers looking for a lodge in the city that never sleeps, or for homeowners, who need to be able to price their property at a competitve price to make a profit.
import folium
@@ -13184,7 +13186,7 @@ Data Collection
-In [80]:
+In [48]:
main_df = pd.read_csv('nyc.csv')
@@ -13201,7 +13203,7 @@ Data Collection
- Out[80]:
+ Out[48]:
@@ -13373,7 +13375,7 @@ Data Collection
-In [81]:
+In [49]:
print(main_df.info())
@@ -13433,7 +13435,7 @@ Data Collection
-In [82]:
+In [50]:
print("Neighbourhood Groups:", main_df['neighbourhood_group'].unique().tolist())
@@ -13474,7 +13476,7 @@ Data Collection
-In [83]:
+In [51]:
print(main_df['price'].describe(percentiles=[.25, .50, .75, .95]))
@@ -13529,7 +13531,7 @@ Location (Neighbourhoo
-In [84]:
+In [52]:
# ax = sns.scatterplot(x='neighbourhood_group', y='price', data=main_df, s=14)
@@ -13560,7 +13562,7 @@ Location (Neighbourhoo
-
@@ -13582,7 +13584,7 @@ Location (Neighbourhoo
-In [85]:
+In [53]:
# f,ax=plt.subplots(1,2,figsize=(18,8))
@@ -13614,7 +13616,7 @@ Location (Neighbourhoo
-
@@ -13629,7 +13631,7 @@ Location (Neighbourhoo
-
@@ -13652,7 +13654,7 @@ Location (Neighbourhoo
-In [86]:
+In [54]:
prices = sorted(main_df['price'].unique().tolist())
@@ -13692,7 +13694,7 @@ Location (Neighbourhoo
-In [87]:
+In [55]:
# Assigning colors to the partitions
@@ -13716,7 +13718,7 @@ Location (Neighbourhoo
-In [88]:
+In [56]:
m = folium.Map(location=[40.71455, -74.00712], zoom_start=13) # Creating a folium map
@@ -13761,7 +13763,7 @@ Location (Neighbourhoo
-
+
@@ -13772,7 +13774,7 @@ Location (Neighbourhoo
-In [119]:
+In [57]:
%%capture
@@ -13839,7 +13841,7 @@ Location (Neighbourhoo
-In [90]:
+In [58]:
#### Type of room
@@ -13862,10 +13864,11 @@ Location (Neighbourhoo
-In [91]:
+In [59]:
main_df.corr().style.background_gradient(cmap='coolwarm')
+# plt.show()
@@ -13878,442 +13881,442 @@ Location (Neighbourhoo
- Out[91]:
+ Out[59]: