分裂翻译结果
我正在在CSV/Excel文件中进行单词traslation,这是我的代码:
import pandas as pd
from googletrans import Translator
# read from an excel file
df = pd.read_excel('/content/Libro2.xlsx')
translator = Translator()
df = df.apply(translator.translate,src='en',dest='es').apply(getattr, args=('text',))
我得到这样的翻译输出:
我想拥有此输出,但我不确定我需要什么做:
I'm doing traslation of words in csv/excel files here is my code:
import pandas as pd
from googletrans import Translator
# read from an excel file
df = pd.read_excel('/content/Libro2.xlsx')
translator = Translator()
df = df.apply(translator.translate,src='en',dest='es').apply(getattr, args=('text',))
I get the translation output like this:
I would like to have this output but I'm not sure what I need to do:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论