I want to read the below CSV file into read_csv, due to the special characters in the CSV file , cant read the file properly, missing special characters in the column names in the data frame , and data is going here and there, but excel data is showing properly. can you help to fix this issue, want to skip 5 rows and read the remaining data as it is and rename the column name
CSV file:-
$$PROGRAM$$ transistor.csv
$$DEVICE$$ 1
$$LOT$$ lot
$$DATE$$ 7/28/2021
$$FORMAT$$ ,SERIAL,COND=Temp,COND=vdd
1,BA1,25,1.2,7/12/201
1,BA2,25,1.2
1,BA2,25,1.2
1,BA3,25,1.2
import pandas as pd
import numpy as np
x=pd.read_csv(r"\trial.csv",index_col=None, header=0, skiprows=5, error_bad_lines=False,low_memory=False,encoding='utf8')
OUTPUT:-X
𝐹𝑂𝑅𝑀𝐴𝑇 SERIAL COND=Temp COND=vdd-
1 BA1 25 1.2 7/12/201-
1 BA2 25 1.2 NaN-
1 BA2 25 1.2 NaN-
1 BA3 25 1.2 NaN-


index_col=0is not going to prevent the first value to be used as index, but you can dox=x.reset_index(). Please provide the expected output for more help