1In [248]:
2dict_ = {112: 'en', 113: 'es', 114: 'es', 111: 'en'}
3df['D'] = df['U'].map(dict_)
4df
56Out[248]:
7 U L D
80111 en en
91112 en en
102112 es en
113113 es es
124113 ja es
135113 zh es
146114 es es
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content