Files
HowBadIsMyBatch/src/MultiIndexValuesProvider.py
frankknoll 0cebebfe31 refactoring
2023-02-12 10:40:58 +01:00

13 lines
298 B
Python

import pandas as pd
class MultiIndexValuesProvider:
@staticmethod
def getValues(multiIndex):
df = multiIndex.to_frame(index = False)
values = (pd
.concat([df[column] for column in df.columns])
.unique())
return set(values)