Say there's a data frame with (4000,13) shape. Say dataframe["str_labels"] may has "|" value in it. How to sort pandas dataframe based on removing any rows (all 13 columns) consisting of string value "|". example:
list(dataframe["str_labels"])=["abcd","aaa","op|gg","iku | gv"]
filtered_out = ["abcd", "aaa"]
## example code
dataframe["|" not in dataframe["str_labels"]]
# or
dataframe[dataframe["str_Labels"].str.contains("|")]
# ........etc