You can do it by using Json
import json
#SAVE
with open('data.txt', 'w') as outfile:
json.dump(Hotels_Region, outfile)
#LOAD
with open('data.txt') as json_file:
data = json.load(json_file)
data
{'La Pizzeria': 'Italy', "Domino's": 'Germany', 'Pizza Hut': 'Austria'}
It will work in the map function
df=pd.DataFrame({'store':['La Pizzeria']})
df.store.map(data)
0 Italy
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…