air_quality_hist
Get historical air quality data for any supported city, choosing hourly, daily, or monthly records within a specified date range. Useful for analyzing pollution trends.
Instructions
真气网-空气历史数据 https://www.zq12369.com/ :param city: 调用 ak.air_city_table() 接口获取所有城市列表 :type city: str :param period: "hour": 每小时一个数据, 由于数据量比较大, 下载较慢; "day": 每天一个数据; "month": 每个月一个数据 :type period: str :param start_date: e.g., "20190327" :type start_date: str :param end_date: e.g., "20200327" :type end_date: str :return: 指定城市和数据频率下在指定时间段内的空气质量数据 :rtype: pandas.DataFrame
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | 杭州 | |
| period | No | day | |
| end_date | No | 20200427 | |
| start_date | No | 20190327 |