Search
 
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
Name
7+4 =