So I have a large file of data that's can be up to 11 columns wide, it looks something like this.
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
When I read in using pandas i used the code:
pd.read_csv(file_dir, skiprows = 1, sep = '\s+')
.
When pandas reads it, it creates a dataframe that's 3x8(Which is correct).
Using Polars:
pl.read_csv(file_dir, skip_rows=1, orient='col')
When polars reads it, it creates a data frame that's 3x1.
I think its due to the separator, but I'm not sure. I tried using "\s+" in polars but it doesn't like it because its bigger than one byte. The delimiter in these files in 7 white spaces.