Spaces:
Runtime error
Runtime error
Update airbnb.ipynb
Browse files- airbnb.ipynb +1 -1
airbnb.ipynb
CHANGED
@@ -49,7 +49,7 @@
|
|
49 |
"df = df.drop('host_identity_verified', axis=1)\n",
|
50 |
"df['description'] = df['NAME']\n",
|
51 |
"df['price'] = df['price'].dropna().apply(lambda x : int(x[1:].strip().replace(',', '')))\n",
|
52 |
-
"df['sq. meters'] = df['price'].apply(lambda x : random.choices([25, 40, 45, 55, 60, 70], weights=[5, 5, 4, 3, 2, 1])[0])\n",
|
53 |
"df = df[['price', 'sq. meters', 'description', 'neighbourhood group', 'host name', 'cancellation_policy', 'house_rules']]\n",
|
54 |
"df = df[df['house_rules']!='#NAME?'].dropna().reset_index(drop=True)\n",
|
55 |
"df = df[0:10000]"
|
|
|
49 |
"df = df.drop('host_identity_verified', axis=1)\n",
|
50 |
"df['description'] = df['NAME']\n",
|
51 |
"df['price'] = df['price'].dropna().apply(lambda x : int(x[1:].strip().replace(',', '')))\n",
|
52 |
+
"df['sq. meters'] = df['price'].apply(lambda x : random.choices([25, 40, 45, 55, 60, 70,90,100], weights=[5, 5, 4, 3, 2, 1,0,0])[0])\n",
|
53 |
"df = df[['price', 'sq. meters', 'description', 'neighbourhood group', 'host name', 'cancellation_policy', 'house_rules']]\n",
|
54 |
"df = df[df['house_rules']!='#NAME?'].dropna().reset_index(drop=True)\n",
|
55 |
"df = df[0:10000]"
|