JerBouma
2/9/2019 - 7:35 PM

[Removing Data with Certain String] Removings rows of Data that contain a specific string. #pandas

[Removing Data with Certain String] Removings rows of Data that contain a specific string. #pandas

df = df[~df.Description.str.contains("STRING1")]
df = df[~df.Description.str.contains("STRING2")]
df = df[~df.Notes.str.contains("STRING3")]
df = df[~df.Notes.str.contains("STRING4")]