[BUG] warnings when using pipe
fkgruber opened this issue · comments
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
Try to avoid running with raw python REPL.
See also: #196 (comment)