Python Forum
Check for a special characters in a column and flag it
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check for a special characters in a column and flag it
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Copy xml content from webpage and save to locally without special characters Nik1811 14 596 Mar-26-2024, 09:28 AM
Last Post: Nik1811
Question Special Characters read-write Prisonfeed 1 581 Sep-17-2023, 08:26 PM
Last Post: Gribouillis
  How do I check if the first X characters of a string are numbers? FirstBornAlbratross 6 1,427 Apr-12-2023, 10:39 AM
Last Post: jefsummers
  [SOLVED] [sqilte3] Check if column not empty? Winfried 5 1,066 Jan-28-2023, 12:53 PM
Last Post: Winfried
Big Grin Variable flag vs code outside of for loop?(Disregard) cubangt 2 1,129 Mar-16-2022, 08:54 PM
Last Post: cubangt
  Rename Multiple files in directory to remove special characters nyawadasi 9 6,232 Feb-16-2021, 09:49 PM
Last Post: BashBedlam
  Python Openpyxl is unable to check from Column 6 onwards Skye 0 1,684 Oct-13-2020, 06:11 AM
Last Post: Skye
  Remove escape characters / Unicode characters from string DreamingInsanity 5 13,420 May-15-2020, 01:37 PM
Last Post: snippsat
  how to check for thread kill flag nanok66 1 2,147 May-09-2020, 10:06 PM
Last Post: nanok66
  Using a flag error blackjesus24 1 1,578 Jan-30-2020, 09:42 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020