refactoring

This commit is contained in:
frankknoll
2023-10-03 22:51:33 +02:00
parent 93ff6fcaeb
commit 2788882ec1
3 changed files with 17 additions and 13 deletions

11
src/TablesHelper.py Normal file
View File

@@ -0,0 +1,11 @@
import pandas as pd
class TablesHelper:
@staticmethod
def concatTables_groupByIndex_sum(tables):
return (pd
.concat(tables)
.groupby(tables[0].index.names)
.sum())