探索测试数据
查看过训练数据后,接下来一起探索 "Store Item Demand Forecasting Challenge" 的测试数据。请记住,测试集通常比训练集少一列。
缺少的这一列会和输出格式一起在示例提交文件中给出。在正式推进比赛之前,您需要先熟悉期望的输出格式。
因此,让我们先看看测试集的列,并与训练集的列进行对比。另外,再探索一下示例提交文件的格式。train DataFrame 已在您的工作区中可用。
本练习是课程的一部分
用 Python 赢下 Kaggle 竞赛
交互式实操练习
通过完成这段示例代码来试试这个练习。
import pandas as pd
# Read the test data
test = ____.____('test.csv')
# Print train and test columns
print('Train columns:', train.____.tolist())
print('Test columns:', test.____.tolist())