detected if a word in column from Dataframe contains any value that is not Hebrew or English

46 Views Asked by At

Given

  1. DataFrame contains column df['words']

Need to make sure that there is no word that isn't English or Hebrew & that there is no number in the input :

for example: wrong words:

pla!n, *, /, ?, mouna笑, ~,!, adקר, etc..

for example: good words:

plan, mountain, ארטיק, ok...

in python alone. thanks

1

There are 1 best solutions below

1
yoyoedv On

"".isalpha() אתה יכול להשתמש ב

you can use "".isalpha()