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 in 2 columns
df[df["team"].str.contains("A|B")==False] team conference points 5 C East 5
Source by www.statology.org #
PREVIOUS
NEXT
Tagged:
#How
#Drop
#Rows
#Contain
#Specific
#String
#columns
ADD COMMENT
Topic
COMMENT
Name
7+4 =
Submit