Check for a special characters in a column and flag it - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Check for a special characters in a column and flag it (/thread-24405.html) |
Check for a special characters in a column and flag it - ayomayam - Feb-12-2020 I have a data frame with a below column and would like to do some characters/special character search on it Price ----- 123 $123 -123 A123 e123 234.5 675 How do I search for Alphabets and special characters in the price column and create a new column "flag" using python ? Here is my desired output Price Flag ----- ---- 123 0 $123 1 -123 1 A123 1 e123 1 234.5 0 675 0 |