Created
October 13, 2019 11:54
-
-
Save MariaLavrovskaya/b634daf8b670c967f638bdc2b31dba10 to your computer and use it in GitHub Desktop.
airbnb_3
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
| import matplotlib.pyplot as plt | |
| import seaborn as sns | |
| f,ax=plt.subplots(1,2,figsize=(15,8)) | |
| print(ax) | |
| data['neighbourhood_group'].value_counts().plot.pie(explode=[0.01,0.1,0.01,0.01,0.01],autopct='%0.3f%%',ax=ax[0], shadow=False) | |
| ax[0].set_title('Share of Neighborhood') | |
| ax[0].set_ylabel('Neighborhood Share') | |
| sns.countplot('neighbourhood_group',data=data,ax=ax[1]) | |
| ax[1].set_title('Share of Neighborhood') | |
| plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment