|
@@ -41,6 +41,7 @@ def diag_cal():
|
|
|
with DBRead as DBRead:
|
|
|
df_Diag_Ram = DBRead.getdata('start_time','end_time','product_id','code','level','info','advice','Batpos',tablename=tablename2,factory='骑享',sn='',timename='',st='',sp='')
|
|
|
df_Diag_Ram=df_Diag_Ram.dropna(how='any')
|
|
|
+ df_Diag_Ram=df_Diag_Ram.reset_index(drop=True)
|
|
|
|
|
|
for sn in SNnums:#SN遍历
|
|
|
print(sn)
|
|
@@ -284,6 +285,7 @@ if __name__ == "__main__":
|
|
|
with DBRead as DBRead:
|
|
|
df_Diag_Ram = DBRead.getdata('start_time','end_time','product_id','code','level','info','advice','Batpos','factory',tablename=tablename2,factory='',sn='',timename='',st='',sp='')
|
|
|
df_Diag_Ram=df_Diag_Ram.dropna(how='any')
|
|
|
+ df_Diag_Ram=df_Diag_Ram.reset_index(drop=True)
|
|
|
# result=pd.read_csv(r'D:\Work\Code_write\data_analyze_platform\USER\01Screen_Problem\result.csv',encoding='gbk')
|
|
|
|
|
|
#定时任务.......................................................................................................................................................................
|