text_plain_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import numpy as np
import pandas as pd
train_data = pd.read_csv('../input/train.csv', usecols=['Producto_ID', 'Demanda_uni_equil'])

mean_data = train_data.groupby(train_data['Producto_ID']).mean()
print(mean_data)