I want to add a new column in dataframe, which will paste the data from another column if it is written in English, and paste nothing if it is not in English using langdetect library.

```
df['lyrics_english'] = np.where(detect(df["lyrics"]) == 'en', df["lyrics"], '')

```

I hope, the meaning is clear. But I have Error like this.

```
  File "C:/Users/PycharmProjects/pythontask/example", line 128, in <module>
    df['lyrics_english'] = np.where(detect(df["lyrics"]) == 'en', df["lyrics"], '')
  File "C:\Users\AppData\Local\Programs\Python\Python38-32\lib\site-packages\langdetect\detector_factory.py", line 129, in detect
    detector.append(text)
  File "C:\Users\AppData\Local\Programs\Python\Python38-32\lib\site-packages\langdetect\detector.py", line 104, in append
    text = self.URL_RE.sub(' ', text)
TypeError: expected string or bytes-like object

```

If I type

```
df['lyrics_english'] = np.where(detect(df["lyrics"]) == 'en', 0, '')

```

there is again the same Error, smth linked with AppData. What can I do?