Separating by column with Pandas

I was able to solve this problem by doing the following:

column_headers = [list of header names]
df = pd.read_table(filename,sep=r"[ ]{2,}", header=None, skiprows=1, engine='python', names=column_headers)

Thanks to those who submitted some possible solutions to try

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top