Loading skript.py +1 −1 Original line number Diff line number Diff line Loading @@ -377,7 +377,7 @@ with pd.ExcelWriter(excel_file_path, engine='xlsxwriter') as writer: #suma=exexbl[ (exexbl['ROK']==year) & (exexbl['MESIC']==month)].CASTKA.sum() suma=0 for idx_ex, ex in exexbl.iterrows(): if (ex['ROK']==year & ex['MESIC']==month): if (ex['ROK']==year and ex['MESIC']==month): suma+=ex['CASTKA'] out.at[iter, str(year)+"_"+str(month)] = suma out.at[iter,'EMPTY_'+str(year-year_start)] = "" Loading Loading
skript.py +1 −1 Original line number Diff line number Diff line Loading @@ -377,7 +377,7 @@ with pd.ExcelWriter(excel_file_path, engine='xlsxwriter') as writer: #suma=exexbl[ (exexbl['ROK']==year) & (exexbl['MESIC']==month)].CASTKA.sum() suma=0 for idx_ex, ex in exexbl.iterrows(): if (ex['ROK']==year & ex['MESIC']==month): if (ex['ROK']==year and ex['MESIC']==month): suma+=ex['CASTKA'] out.at[iter, str(year)+"_"+str(month)] = suma out.at[iter,'EMPTY_'+str(year-year_start)] = "" Loading