Created
October 13, 2019 12:01
-
-
Save MariaLavrovskaya/d457e8db558f9351967b26258cba7a47 to your computer and use it in GitHub Desktop.
airbnb_7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| plt.figure(figsize=(10,6)) | |
| sns.distplot(data[data.neighbourhood_group=='Manhattan'].price,color='lightblue',hist=False,label='Manhattan') | |
| sns.distplot(data[data.neighbourhood_group=='Brooklyn'].price,color='khaki',hist=False,label='Brooklyn') | |
| sns.distplot(data[data.neighbourhood_group=='Queens'].price,color='green',hist=False,label='Queens') | |
| sns.distplot(data[data.neighbourhood_group=='Staten Island'].price,color='blue',hist=False,label='Staten Island') | |
| sns.distplot(data[data.neighbourhood_group=='Long Island'].price,color='lavender',hist=False,label='Long Island') | |
| plt.title('Area price destribution for price<2000') | |
| plt.xlim(0,2000) | |
| plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment