编辑:找到答案-发布在下面:
我正在使用pytrend.interest_over_time()获取澳大利亚丛林大火季节谷歌搜索“我身边的火”的次数。我试图找出返回的值代表什么。下图为2019年11月30日的第一行,显示7。这是700,7000,70000,700000吗?我已经搜索过了,但找不到信息。就上下文而言,“我附近的火灾”是2019年在澳大利亚排名第一的谷歌搜索词,是RFS提供的火灾地图GIS工具
pytrend = TrendReq(hl='en-US', tz=360, retries=2, backoff_factor=0.1)
keywords = ['fires near me', 'smoke', 'air quality']
pytrend.build_payload(
kw_list=keywords,
cat=0,
timeframe='2019-09-01 2020-04-30',
geo='AU-NSW',
gprop='')
data = pytrend.interest_over_time()
data= data.drop(labels=['isPartial'],axis='columns')
image = data.plot(title = 'Fire in last 5 years on Google Trends ')
fig = image.get_figure()
fig.savefig('figure.png')
data.to_csv('Syd_Google_Smoke.csv', encoding='utf_8_sig')
[Screenshot of df output][1]
fires near me smoke air quality
date
2019-11-30 7 1 1
2019-12-01 20 6 2
2019-12-02 22 8 6
2019-12-03 22 8 6
2019-12-04 26 10 9
谢谢你的帮助
从谷歌趋势网站:
长期利息
数字表示相对于给定区域和时间图表上最高点的搜索兴趣。值100是该术语的最受欢迎程度。值为50表示该术语的流行程度为50的一半。分数为0表示本学期没有足够的数据
相关问题 更多 >
编程相关推荐