import pandas as pd def read_csv(path): data = pd.read_csv(path, on_bad_lines="skip") return data