|
@@ -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)
|