Skip to content

Instantly share code, notes, and snippets.

View mikaelm12's full-sized avatar

Mikael Mengistu mikaelm12

View GitHub Profile
bedroom_val_counts.sort_index().plot.bar()
bedroom_val_counts.plot.bar()
listings.groupby("neighbourhood")["price"].mean().plot.bar(figsize=(15,5))
neighborhoods = listings['neighbourhood'].value_counts()
ax = neighborhoods.plot.bar(x='neighbourhood',figsize=(15,5)) # Increased figsize so x axis values don't overlap
bedroom_val_counts = listings.bedrooms.value_counts()
bedrooms.mean().plot.bar(y='price')
listings.price = listings.price.replace('[\$,]', '', regex=True).astype(float)
bedrooms = listings.groupby('bedrooms')
bedrooms["price"].describe()
listings.shape
listings.head()
listings = pd.read_csv("../input/listings.csv")