I have a data file from AG columns, as shown below, but when I read it using pd.read_csv('data.csv') , it prints an extra unnamed column at the end for no reason.
colA ColB colC colD colE colF colG Unnamed: 7 44 45 26 26 40 26 46 NaN 47 16 38 47 48 22 37 NaN 19 28 36 18 40 18 46 NaN 50 14 12 33 12 44 23 NaN 39 47 16 42 33 48 38 NaN
I saw the data file once at different times, but I do not have additional data in any other column. How should I remove this extra column while reading? Thanks
python pandas dataframe
muazfaiz
source share