-
Notifications
You must be signed in to change notification settings - Fork 845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
运行wepon/sesson one/extract_feature.py出现错误 #13
Comments
你好,我也是新手,遇到这个问题,你解决了吗? |
on_train = pd.read_csv('data/ccf_online_stage1_train.csv',header=None, keep_default_na=False) |
Not work...My python version is 2.7 |
类型错误,改下字段类型 |
off_train.date and off_train.date_received is float type |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你好 我是新人 想学习一下你的代码 运行extract_feature.py出现问题 报错如下
Traceback (most recent call last):
File "extract_feature.py", line 60, in
feature3 = off_train[((off_train.date>='20160315')&(off_train.date<='20160630'))|((off_train.date=='null')&(off_train.date_received>='20160315')&(off_train.date_received<='20160630'))]
File "C:\Users\u\AppData\Roaming\Python\Python36\site-packages\pandas\core\ops.py", line 879, in wrapper
res = na_op(values, other)
File "C:\Users\u\AppData\Roaming\Python\Python36\site-packages\pandas\core\ops.py", line 818, in na_op
raise TypeError("invalid type comparison")
TypeError: invalid type comparison
想请问该怎么处理
The text was updated successfully, but these errors were encountered: