I have an Excel file, which has tens of thousands of English/Latin and Arabic words in two columns, first column's name: "EN", the another column's name: "AR". The column I want to work on is "AR" column.
I want to add 'ar' in a new column in front of each row containing only Arabic words, and add 'en' in front of each row contains only Latin vocabulary, and add 'enar' in front of each row contains Latin and Arabic vocabulary.
Note: numbers, point '.', comma ',' are used in all rows.
An example of my file, the work I want to do:
EN AR new column
Appel تفاحة ar
Appel (1990) (1990) تفاحة ar
R. Appel ر. تفاحة ar
Red, Appel Red Appel en
Red Appel Red Appel en
R. Appel R. Appel en
Red, Appel تفاحة، Red enar
Red Appel Red تفاحة enar
How can I do that using Python/Pandas?
Thank you guys for your help.