Il giorno mer, 18/01/2017 alle 09.25 +0100, Fabian Braennstroem ha
scritto:
> Hello,
>
> I am struggling reading the attached file into a dataframe.
>
> My current try with:
>
> df = pd.read_table(datFil, delim_whitespace=True)
>
"delim_whitespace" won't work because you also have whitespaces in the
data (and not always the same number, e.g. "Apple Inc/aapl" is read as
two fields and "Bank Of America" as three).
I think the following should work:
df = pd.read_table(datFil, sep='\s\s+')
(that is a separator is made by two or more spaces).
Pietro