-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
piping to verbs is not passing the dataframe argument #149
Comments
Are you running in plain python REPL, instead of ipython/bpython? |
That was a plain repl. |
It fails in a jupyter notebook too. |
Downgrading to 0.8.6 allows it to succeed in both environments. Correction -- downgrading allows it to work in Jupyter. I understand it doesn't work in the plain repl. |
What does this print with 0.9.0 in your jupyter notebook? from datar import get_versions
get_versions() Also attach your jupyter version:
|
[GCC 10.2.0]
datar : 0.9.0
numpy : 1.21.6
pipda : 0.7.6
executing: 1.1.0
pandas : 1.3.5
Selected Jupyter core packages...
IPython : 7.34.0
ipykernel : 6.15.1
ipywidgets : not installed
jupyter_client : 7.3.4
jupyter_core : 4.11.1
jupyter_server : 1.18.1
jupyterlab : 3.4.5
nbclient : 0.6.7
nbconvert : 7.0.0
nbformat : 5.4.0
notebook : 6.4.12
qtconsole : not installed
traitlets : 5.3.0 |
And also your code that fails? |
|
It works with my environment. Looks like the major difference is the IPython version. Mind upgrading it and see if it works?
|
Unfortunately the more recent ipython requires Python 3.8, and I'm stuck on 3.8 there for now. But I do have an alternate, up-to-date environment where this still fails:
|
How about switching
|
That works! |
Great! |
* 🐛 Patch classes if they have piping operator method * ✨ Auto-register numpy ufuncs * Fix linting * pump executing to 1.1.1 to fix pwwang/datar#149 * 0.8.0
Fixed at v0.9.1 |
Piping into verbs like
mutate
seems to be broken in 0.9.0. Passing in the dataframe directly works, but still generates a warning.The text was updated successfully, but these errors were encountered: