how to remove a line in pandas code example
Example 1: delete a row in pandas dataframe
df.drop(df.index[2])
Example 2: removing new line character in python from dataframe
df.replace(to_replace=[r"\\t|\\n|\\r", "\t|\n|\r"], value=["",""], regex=True, inplace=<INPLACE>)
Example 3: remove rows from dataframe
df.drop(['Cochice', 'Pima'])