INNER CODE UNIT · Python
transactions
alteryx/compose · composeml/conftest.py:9
def transactions():
df = read_csv(
data=[
"time,amount,customer_id",
"2019-01-01 08:00:00,1,0",
"2019-01-01 08:30:00,1,0",
"2019-01-01 09:00:00,1,1",
"2019-01-01 09:30:00,1,1",
"2019-01-01 10:00:00,1,1",
"2019-01-01 10:30:00,1,2",
"2019-01-01 11:00:00,1,2",
"2019-01-01 11:30:00,1,2",
"2019-01-01 12:00:00,1,2",
"2019-01-01 12:30:00,1,3",
],
)
return df