I have a csv file which I want to read using python panda. The header and lines looks the following:
A ^B^C^D^E ^F ^G ^H^I^J^K
Read the file as you have done and then strip extra whitespace for each column which is a string:
df = (pd.read_csv('input.csv', sep="^") .apply(lambda x: x.str.strip() if isinstance(x, str) else x))