Syntax error in pandas dataframe slice in my sklearn data prep?
It is not possible to write numpy style slices in dataframe, like : 

observations = data[:6]


Try DataFrame.ix

df.ix[:,6:]


Cf panda indexing : Panda indexing