t1=arr[arr[:,1]==1,:1]#该语句希望选出arr的第1列数值为1的哪些数据中的第0列数据;
#上面的语句运行成功,能得出想要的结果
#我希望选出选出arr的第1列数值为1,且第5列数值大于0.0的第0列数据,
#尝试以下语句
t0=arr[arr[:,1]==1 & arr[:,5]>0.0,:1]#:
#该语句运行不成功,错误提示如下:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-15-8a22a9824854> in <module>()
----> 1 t0=arr[arr[:,1]==1 & arr[:,5]>0.0,:1]#:
TypeError: unsupported operand type(s) for &: 'int' and 'float'
#想问问,如何才能实现arr[:,1]==1 & arr[:,5]>0.0?
谢谢