DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Pandas: How to Drop Rows that Contain a Specific String
df[df["col"].str.contains("this string")==False]
Source by www.statology.org #
PREVIOUS
NEXT
Tagged:
#How
#Drop
#Rows
#Contain
#Specific
#String
ADD COMMENT
Topic
COMMENT
Name
3+1 =
Submit