Created
January 12, 2021 20:30
-
-
Save bh1995/9c840b8d98704830a86168b85887e695 to your computer and use it in GitHub Desktop.
This file contains 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
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