Python code to translate Chinese letters to English from a Dataframe

4.2k Views Asked by At

I am trying to translate a column which contains names of Chinese company and I would like to translate it to the actual English word and not the meaning of the word. Can anyone help me here.

1

There are 1 best solutions below

3
The_flash On

you could try install module "pip install pinyin", then print it out by:

print pinyin.get('你好', format="strip", delimiter=" ")
ni hao