加载隧道交通数据集

data_dir = Path('./ts-course-data') # 设置数据文件夹路径 tunnel = pd.read_csv(data_dir / 'tunnel.csv', parse_dates=['Day']) # 读取csv文件,并将'Day'列解析为日期格式 tunnel = tunnel.set_index('Day').to_period() # 将'Day'列设置为索引,并将时间戳转换为时期索引

Python数据分析:加载隧道交通数据集

原文地址: https://www.cveoy.top/t/topic/nVhq 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录