Skip to content

Instantly share code, notes, and snippets.

@MariaLavrovskaya
Created October 13, 2019 11:54
Show Gist options
  • Save MariaLavrovskaya/b634daf8b670c967f638bdc2b31dba10 to your computer and use it in GitHub Desktop.
Save MariaLavrovskaya/b634daf8b670c967f638bdc2b31dba10 to your computer and use it in GitHub Desktop.
airbnb_3
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