I have a dataframe with languages as column names, and with 1x final column containing account names:
EN DE IT Account
Milan Mailand Milano Italy
Florence Florenz Firenze Italy
London London Londra UK
Belgrade Belgrad Belgrado World
I would need to extract information from this database, creating all the possible lists based on a combination of column names (languages) and the values within the account column.
For example here the output would be:
EN_Italy = ['Milan', 'Florence']
DE_Italy = ['Mailand', 'Florenz']
IT_Italy = ['Milano', 'Firenze']
EN_UK = ['London']
DE_UK = ['London']
IT_UK = ['Londra']
EN_World = ['Belgrade']
DE_World = ['Belgrad']
IT_World = ['Belgrado']
Would it be possible to do so? Thank you!