kieferk / dfply

dplyr-style piping operations for pandas dataframes
GNU General Public License v3.0
889 stars 103 forks source link

When using `spread`, Type error occurs on not callable 'Client' object #89

Closed ddoannpd closed 4 years ago

ddoannpd commented 4 years ago

With version 0.3.3 and Python 3.6 (within a Jupyter notebook), I have tried applying spread to different DataFrames but they all trigger the same Type Error on a 'Client' object.

<ipython-input-9-7f9021e4a456> in <module>()
----> 1 elongated >> spread(X.variable, X.value)
TypeError: 'Client' object is not callable

The simplest example from your own documentation for spread also triggers this error. For example:

elongated = diamonds >> gather('variable', 'value', add_id=True)
widened = elongated >> spread(X.variable, X.value)
ddoannpd commented 4 years ago

Seems the notebook was including and re-aliasing spread.