Skip to main content
Corrected code formatting, improved answer clarity.
Source Link
Deepstop
  • 3.8k
  • 2
  • 12
  • 23

You can try doing this:

pd.read_csv('source.txt',header=0, delim_whitespace=True) 

If you have any white spaces in the data you're gonnawill get an error, so delim_whitespace is included to remove those in case they're in the data.

You can try doing this:

pd.read_csv('source.txt',header=0, delim_whitespace=True) 

If you have any white spaces in the data you're gonna get an error, so delim_whitespace is included to remove those in case they're in the data.

You can try doing this:

pd.read_csv('source.txt',header=0, delim_whitespace=True) 

If you have any white spaces in the data you're will get an error, so delim_whitespace is included to remove those in case they're in the data.

Corrected code formatting, improved answer clarity.
Source Link

You can try doing this: pd.read_csv('source.txt',header=0, delim_whitespace=True) If

pd.read_csv('source.txt',header=0, delim_whitespace=True) 

If you have any white spaces in the data youyou're gonna get an error, so we include delim_whitespacedelim_whitespace is included to remove those in case if we havethey're in the data.

You can try doing this: pd.read_csv('source.txt',header=0, delim_whitespace=True) If you have any white spaces in data you gonna get an error so we include delim_whitespace to remove those in case if we have in the data.

You can try doing this:

pd.read_csv('source.txt',header=0, delim_whitespace=True) 

If you have any white spaces in the data you're gonna get an error, so delim_whitespace is included to remove those in case they're in the data.

Source Link

You can try doing this: pd.read_csv('source.txt',header=0, delim_whitespace=True) If you have any white spaces in data you gonna get an error so we include delim_whitespace to remove those in case if we have in the data.