import pandas as pd
from siuba import _, spread, gather
= pd.DataFrame({
costs 'id': [1,2],
'price_x': [.1, .2],
'price_y': [.4, .5],
'price_z': [.7, .8]
})
costs
id | price_x | price_y | price_z | |
---|---|---|---|---|
0 | 1 | 0.1 | 0.4 | 0.7 |
1 | 2 | 0.2 | 0.5 | 0.8 |