
python
小羊羊羊羊羊
这个作者很懒,什么都没留下…
展开
-
python import site failed
python import failed原创 2022-09-05 11:52:40 · 845 阅读 · 1 评论 -
Pandas报错TypeError: Cannot perform ‘rand_‘ with a dtyped [float64] array and scalar of type [bool]
Pandas报错TypeError: Cannot perform ‘rand_’ with a dtyped [float64] array and scalar of type [bool]:通过多个条件进行excel数据的筛选报错,源码如下:src = df_all[df_all['TimeId'] == times[i] & df_all['CPP'] != -1000] }解决方法:每个条件外加括号src = df_all[(df_all['TimeId'] == ti原创 2022-03-30 19:33:50 · 2263 阅读 · 1 评论