【发布时间】:2019-01-22 09:14:31
【问题描述】:
nb_products_per_basket['order_canceled'] =
nb_products_per_basket['InvoiceNo'].apply(lambda x:int('C' in x))
我有这个:
TypeError: argument of type 'int' is not iterable
我该如何解决?
【问题讨论】:
-
nb_products_per_basket['InvoiceNo']包含什么?请举个例子 -
我更新问题