ComeçarComece de graça

Explore test data

Having looked at the train data, let's explore the test data in the "Store Item Demand Forecasting Challenge". Remember, that the test dataset generally contains one column less than the train one.

This column, together with the output format, is presented in the sample submission file. Before making any progress in the competition, you should get familiar with the expected output.

That is why, let's look at the columns of the test dataset and compare it to the train columns. Additionally, let's explore the format of the sample submission. The train DataFrame is available in your workspace.

Este exercício faz parte do curso

Winning a Kaggle Competition in Python

Ver curso

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

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())
Editar e executar o código