0101 / pipetools

Functional plumbing for Python
https://0101.github.io/pipetools/
MIT License
207 stars 17 forks source link

Does pipetools support Pandas Dataframes? #10

Closed nicksspirit closed 4 years ago

nicksspirit commented 4 years ago

I am trying to run this example

additives_df.loc[:, ["pallets"]] > pipe | (lambda df: df.head())

but i get the exceptions

TypeError: '>' not supported between instances of 'float' and 'function'

Is there a proper way to pipe pandas dataframes

nicksspirit commented 4 years ago

Never mind I realize dataframes override the dunder method __gt__ so the df > pipe feature won't work.