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

[BUG] warnings when using pipe #202

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

[BUG] warnings when using pipe #202

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

Comments

@fkgruber
Copy link

fkgruber commented Feb 5, 2024

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

whenever I use the pipe I get a warning:

from datar import f
from datar.dplyr import mutate, filter_, if_else
from datar.tibble import tibble
# or
# from datar.all import f, mutate, filter_, if_else, tibble

df = tibble(
    x=range(4),  # or c[:4]  (from datar.base import c)
    y=['zero', 'one', 'two', 'three']
)
>>> df>>mutate(z=f.x)
/Users/USER/miniconda3/envs/benchmark/lib/python3.8/site-packages/pipda/utils.py:89: PipeableCallCheckWarning: Failed to detect AST node calling `mutate`, assuming a piping call.
  warnings.warn(
        x        y       z
  <int64> <object> <int64>
0       0     zero       0
1       1      one       1
2       2      two       2
3       3    three       3
>>> 

Expected Behavior

no warning

Installed Versions

python : 3.8.18 (default, Sep 11 2023, 08:17:16)
[Clang 14.0.6 ]
datar : 0.15.4
simplug : 0.3.2
executing : 2.0.1
pipda : 0.13.1
datar-numpy : 0.3.3
numpy : 1.24.3
datar-pandas: 0.5.4
pandas : 2.0.3

@fkgruber fkgruber added the bug Something isn't working label Feb 5, 2024
@pwwang
Copy link
Owner

pwwang commented Feb 5, 2024

Try to avoid running with raw python REPL.

See also: #196 (comment)

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