Skip to content

Instantly share code, notes, and snippets.

@abbasali-io
Created February 5, 2020 17:37
Show Gist options
  • Save abbasali-io/e27e2b8a6ac61fa2a944735b8936f867 to your computer and use it in GitHub Desktop.
Save abbasali-io/e27e2b8a6ac61fa2a944735b8936f867 to your computer and use it in GitHub Desktop.
Create the plot showing the distribution of properties by Size in Kuala Lumpur
# highly sqft per area
all_property_sqft = df.groupby('Location')['Built_Size'].mean().sort_values(ascending=False)
bx = all_property_sqft.plot(kind='bar', title="Property Size Distribution in Kuala Lumpur", figsize=(15,10), legend=True, fontsize=10, rot=90)
bx.set_xlabel("Locations", fontsize=10)
bx.set_ylabel("Size", fontsize=10)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment