Traceback (most recent call last):


 "C:\Users\S10500\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\widgets\ipythonconsole\client.py", line 575, in show_time

elapsed_time = time.monotonic() - self.t0
TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'

Traceback (most recent call last):


 "/home/pzy/program/tianchi/test/extract_feature.py", line 99, in <module>

t3['this_month_user_receive_same_coupon_lastone'] = t3.max_date_received - t3.date_received


 "/usr/local/lib/python2.7/dist-packages/pandas/core/ops.py", line 715, in wrapper

result = wrap_results(safe_na_op(lvalues, rvalues))


 "/usr/local/lib/python2.7/dist-packages/pandas/core/ops.py", line 676, in safe_na_op

return na_op(lvalues, rvalues)


 "/usr/local/lib/python2.7/dist-packages/pandas/core/ops.py", line 658, in na_op

result[mask] = op(x[mask], _values_from_object(y[mask]))
TypeError: unsupported operand type(s) for -: 'float' and 'str'
