delete from M_FACTOR_DATA_TEST a where (a.factor_id,a.data_date,a.stock_code) in (select factor_id,data_date,stock_code from M_FACTOR_DATA_TEST group by factor_id,data_date,stock_code having count(*) > 1) and rowid not in (select min(rowid) from M_FA
Python pandas: check if any value is NaN in DataFrame # 查看每一列是否有NaN: df.isnull().any(axis=0) # 查看每一行是否有NaN: df.isnull().any(axis=1) # 查看所有数据中是否有NaN最快的: df.isnull().values.any() # In [2]: df = pd.DataFrame(np.random.randn(1000,1000)) In [3]: df[df > 0