chunk = chunk[(chunk.Coupon_id.notnull() and chunk.Date.notnull())]
報錯ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
改為:
chunk = chunk[(chunk.Coupon_id.notnull() & chunk.Date.notnull())]
問題:為什麼會這樣?