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())]
问题:为什么会这样?