dodger487 / dplython

dplyr for python
MIT License
763 stars 52 forks source link

Unsupported Operand Types #94

Closed souvikjana1993 closed 5 years ago

souvikjana1993 commented 6 years ago

I get this error ----> 1 df >> select(X.Month) >> head(5)

TypeError: unsupported operand type(s) for >>: 'DataFrame' and 'function'

dodger487 commented 5 years ago

This error crops up when you haven't cast your DataFrame into a DplyFrame. Try

df = DplyFrame(df)
df >> select(X.Month) >> head(5)