Answers for "remove specific word from pandas column"

8

python: remove specific values in a dataframe

df.drop(df.index[df['myvar'] == 'specific_name'], inplace = True)
Posted by: Guest on June-22-2020
0

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
Posted by: Guest on December-19-2021

Code answers related to "remove specific word from pandas column"

Python Answers by Framework

Browse Popular Code Answers by Language