I have a dataframe with several columns including a text column, when I use the code from here which is:
import pandas as pd
from googletrans import Translator
translator = Translator(service_urls=['translate.google.com',])
df["translate_result"] = df["to_translate"].apply(lambda x: translator.translate(x, src= "en", dest = "fr").text)
I get the error message :
AttributeError: 'NoneType' object has no attribute 'group'
I tried to update the translator function with service urls but it seems not the problem. What could be the issue here? thank you.

