DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Filter Pandas rows by specific string elements
df = df[~df['c'].astype(str).str.startswith('https')]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#Filter
#Pandas
#rows
#specific
#string
#elements
ADD COMMENT
Topic
COMMENT
Name
4+3 =
Submit