Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to remove integer from string in python

>>> s = '12abcd405'
>>> result = ''.join([i for i in s if not i.isdigit()])
>>> result
'abcd'
Comment

PREVIOUS NEXT
Code Example
Python :: python how to save a Seaborn plot into a file 
Python :: pandas columns to int64 with nan 
Python :: how to convert datetime to jdatetime 
Python :: check if special character in string python 
Python :: python elif invalid syntax 
Python :: translate sentences in python 
Python :: save df to txt 
Python :: auto clicker in python 
Python :: install python on windows subsystem for linux 
Python :: how to create a list from csv python 
Python :: list files in directory python with extension 
Python :: drop multiple columns pandas 
Python :: how to check if an application is open in python 
Python :: discord.py aliases 
Python :: python generate dates between two dates 
Python :: python create new pandas dataframe with specific columns 
Python :: enter key press bind tkinter 
Python :: password generator python 
Python :: json file to dict python 
Python :: change the current working directory in python 
Python :: convert json to x-www-form-urlencoded pyhon 
Python :: bee movie script 
Python :: open image from link python 
Python :: how to install python3 in ubuntu 
Python :: model load pytorch 
Python :: how to replace a word in csv file using python 
Python :: python datetime now only hour and minute 
Python :: urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123) 
Python :: export python pandas dataframe as json file 
Python :: prettytable python 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =