您现在的位置是:首页 > 文章详情

Python爬虫(二)——对开封市58同城出租房数据进行分析

日期:2018-06-23点击:424

 

 


出租房面积(area)

 

 


 

 

出租房价格(price)

 

 

 

 

 

 

 


对比信息 

 

 

代码

 1 import matplotlib as mpl  2 import matplotlib.pyplot as plt  3 import pandas as pad  4 import seaborn as sns  5 import numpy as np  6  7 sns.set_style('dark')  8 kf = pad.read_csv('kf.csv')  9 10 def sinplotone(): 11 fig,ax = plt.subplots() 12 ax.violinplot(kf['price']) 13  plt.show() 14 15 def sinplottwo(): 16 sns.set_style('whitegrid') 17 sns.boxplot(kf['price'],palette='deep') 18 # sns.despine(left=True) 19  plt.show() 20 21 def sinplotthree(): 22 sns.distplot(kf['price']) 23  plt.show() 24 25 def s(): 26 df = pad.DataFrame(kf['area'],kf['price']) 27 sns.jointplot(x='x',y='y',data=df) 28  plt.show() 29 30 if __name__ == '__main__': 31 fig,ax = plt.subplots() 32 ax.scatter(kf['area'],kf['price'],12) 33 plt.show()

 

原文链接:https://yq.aliyun.com/articles/604875
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章