📜  访问 google transalte pandas - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:21.082000             🧑  作者: Mango

代码示例1
import pandas as pd
import googletrans
from googletrans import Translator
 
pd.set_option('max_colwidth', 300)
 
 
# how to get the supported language and their corresponing code
lang_df = pd.DataFrame.from_dict(googletrans.LANGUAGES,  orient='index', columns=['Language'])
lang_df