Ver Fonte

Marketing - Summe nicht mehr in Export

robert há 2 anos atrás
pai
commit
f52fdcefad
1 ficheiros alterados com 7 adições e 0 exclusões
  1. 7 0
      webservice/marketing_plan.py

+ 7 - 0
webservice/marketing_plan.py

@@ -56,11 +56,18 @@ for c in columns[3:]:
     xls_temp_concat[c] = xls_temp_concat[c] * 0.5
 
 df = pd.concat(list(xls.values()) + [xls_temp_concat])
+
 df_rest = df[(df['Konto Nr'] == 'Rest') & (df['Summe'] != 0)]
 df_rest.to_csv(debug_csv, sep=';', decimal=',')
 df = df[df['Konto Nr'] != 'Rest']
+
 df['Wert11'] = df['Wert11'].astype(float)
 df['Wert12'] = df['Wert12'].astype(float)
+
+for c in columns[3:]:
+    df[c] = df[c].round()
+df = df.drop(labels=['Summe'], axis=1)
+
 df = df.groupby(['Konto Nr', 'Betrieb Nr']).sum()
 print(df.info())
 # df.reset_index(inplace=True)