Skip to content
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

head does not work with pipe [BUG] #205

Closed
2 tasks done
fkgruber opened this issue Feb 22, 2024 · 1 comment
Closed
2 tasks done

head does not work with pipe [BUG] #205

fkgruber opened this issue Feb 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@fkgruber
Copy link

datar version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of datar and its backends.

Issue Description

I would like to use head with the pipe >> but send error.

from datar.all import head
from datar.data import iris

iris>>head()

/Users/user/miniconda3/lib/python3.11/site-packages/pipda/utils.py:82: PipeableCallCheckWarning: Failed to detect AST node calling head, assuming a normal call.
Traceback (most recent call last):
File "", line 19, in __PYTHON_EL_eval
File "", line 4, in
File "/Users/user/miniconda3/lib/python3.11/site-packages/pipda/function.py", line 447, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
TypeError: _head() missing 1 required positional argument: 'x'

Expected Behavior

give me a head of the dataframe

Installed Versions

datar.get_versions() python : 3.11.5 (main, Sep 11 2023, 08:31:25) [Clang 14.0.6 ] datar : 0.15.4 simplug : 0.3.2 executing : 2.0.1 pipda : 0.13.1 datar-numpy : 0.3.4 numpy : 1.26.2 datar-pandas: 0.5.4 pandas : 2.1.4 >>>
@fkgruber fkgruber added the bug Something isn't working label Feb 22, 2024
@pwwang
Copy link
Owner

pwwang commented Feb 26, 2024

Please refer to: #206

@pwwang pwwang closed this as completed Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants