我有如下因素結構的numpy的陣列匹配標準numpy的刪除多行
sb = np.genfromtxt(open('HomePage/TodayList.txt', 'rb'),
delimiter=',', skiprows=0,
dtype=[('DataBase', np.str_, 16), ('Mode', np.str_, 16),
('SMB', np.str_, 16),('Desc', np.str_, 128),
('Res', np.str_, 16), ('RightCnt', np.float64),
('PercentCnt', np.float64), ('ModelType', np.float64)])
其可以通過名稱'PercentCnt'
要訪問的第6列'PercentCnt'
含有0號至50 第7列'ModelType'
含有0號到5,所以我需要刪除或刪除符合這些標準的數組行'PercentCnt'<50
和'ModelType'<2
。