In this video, I show you how to use the langdetect library to detect the language of text in Python. This is a useful data cleaning step for working with text data which may contain languages other than the desired language. I used it recently for cleaning a set of tweets and removing responses in a language other than English.
Langdetect library: https://pypi.org/project/langdetect/