比较两个数组是否一致,返回True/false

(data["next_obs"][i] != data["obs"][i+1]).all()
 
用.all()即可
posted @ 2021-09-18 17:38  呦呦南山  阅读(181)  评论(0)    收藏  举报