Skip to content

Instantly share code, notes, and snippets.

@bh1995
Created January 12, 2021 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bh1995/9c840b8d98704830a86168b85887e695 to your computer and use it in GitHub Desktop.
Save bh1995/9c840b8d98704830a86168b85887e695 to your computer and use it in GitHub Desktop.
lowPrice = 2000
beijing_price_pd = beijing_price.filter(beijing_price["price"]<lowPrice).toPandas()
# plot
plt.figure(figsize = [16,7])# set figuresize
plt.hist(beijing_price_low_pd['price'],bins = 50,alpha = 0.5,color = 'red',edgecolor = 'white', linewidth = 1.2)
plt.xlabel('price',size = 15)
plt.ylabel('count',size = 15)
plt.title('Histogram of Bei Jing price distribution of below 2000$ price',size = 15)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment