This is part of my CSV file:
I have ";" as my delimiter but due to "Tr.Run on ; FL speed = Tr.run speed" at 4th line I'm getting this error: pandas.errors.ParserError: Error tokenizing data. C error: Expected 11 fields in line 4, saw 12
Code:
extension = 'csv'
all_filenames = [i for i in glob.glob('*.{}'.format(extension))]
combined_csv = pd.concat([pd.read_csv(__file__,sep=';',index_col= False).assign(Machine=os.path.dirname(os.path.abspath(__file__))) for __file__ in all_filenames ])
currentDateTime = datetime.now().strftime("%d-%m-%Y %H-%M-%S %p")
combined_csv.to_csv( f"combined_csv{currentDateTime}.csv", index= False, encoding='utf-8-sig')