continuing

This commit is contained in:
frankknoll
2023-04-03 01:10:44 +02:00
parent 2ccef0b33d
commit 78c45bc813
11 changed files with 8779 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
class CountriesColumnAdder:
def addCountriesColumn(self, countriesByBatchcodeTable, columnName):
countriesByBatchcodeTable[columnName] = countriesByBatchcodeTable.apply(self._getCountriesHavingEvents, axis='columns')
return countriesByBatchcodeTable
def _getCountriesHavingEvents(self, eventCountByCountry):
return set(eventCountByCountry[eventCountByCountry > 0].index)