Detect language in pandas column in python

I would like to detect language in pandas column in python. After detecting it I want to write the language code as a column in pandas dataframe. Below is my code and what I tried. But I got an error please help. Thank you. data = {‘text’: ["It is a good option","Better to have this… Read More Detect language in pandas column in python