INNER CODE UNIT · Python
total_spent
alteryx/compose · composeml/conftest.py:46
def total_spent():
data = [
"customer_id,time,total_spent",
"0,2019-01-01 08:00:00,9",
"0,2019-01-01 08:30:00,8",
"1,2019-01-01 09:00:00,7",
"1,2019-01-01 09:30:00,6",
"1,2019-01-01 10:00:00,5",
"2,2019-01-01 10:30:00,4",
"2,2019-01-01 11:00:00,3",
"2,2019-01-01 11:30:00,2",
"2,2019-01-01 12:00:00,1",
"3,2019-01-01 12:30:00,0",
]
data = read_csv(data, parse_dates=["time"])
kwargs = {