[問題] lifetimes 請教
各位大大們好,
在網路上查到這篇在教CLV建模
https://www.twblogs.net/a/5c37876abd9eee35b3a59e44
不過在執行
data = summary_data_from_transaction_data(df, 'CustomerID', 'InvoiceDate',
monetary_value_col='Sales',
observation_period_end='2011-12-9')
跳出
TypeError: float() argument must be a string or a number, not 'Day'
我也嘗試更換檔案中日期型態(str、int),但一樣不行
想跟板上大大請教該怎麼處理,非常感謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 49.215.149.61 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1600101742.A.EC5.html
推
09/15 10:04,
3年前
, 1F
09/15 10:04, 1F
→
09/15 13:50,
3年前
, 2F
09/15 13:50, 2F
→
09/15 13:50,
3年前
, 3F
09/15 13:50, 3F
→
09/15 13:50,
3年前
, 4F
09/15 13:50, 4F
推
09/15 19:13,
3年前
, 5F
09/15 19:13, 5F
→
09/16 00:42,
3年前
, 6F
09/16 00:42, 6F