data = pd.DataFrame(dict(new_0_cost=[10, 10], new_0_quantity=[20, 20],
    new_2_cost=[10, 10], new_2_quantity=[20, 20], quality=['good', 'good'],
    weights=[40, 40], new_0_total_cost=[1, 2], new_2_total_cost=[3, 4]))
data
Python format and pandas