adding CountryCountsByBatchcodeTablesMerger

This commit is contained in:
frankknoll
2023-06-02 01:06:22 +02:00
parent 1129132dbe
commit 09905eed4d
2 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import pandas as pd
class CountryCountsByBatchcodeTablesMerger:
@staticmethod
def merge(countryCountsByBatchcodeTables):
return (pd
.concat(countryCountsByBatchcodeTables)
.groupby(countryCountsByBatchcodeTables[0].index.names)
.sum())