@GitHunter0
I'm just having an issue with multi-line execution of datar
code in VScode.
If a run this line by line, it works smoothly.
from datar.all import (f, mutate, tibble, fct_infreq, fct_inorder, pull)
df = tibble(var=['b','b','b','c','a','a'])
df = df >> mutate(fct_var = f['var'].astype("category"))
However, if I select all the lines and execute them, it returns:
C:\Users\user_name\miniconda3\envs\py38\lib\site-packages\pipda\utils.py:161: UserWarning: Failed to fetch the node calling the function, call it with the original function.
>>> df = df >> mutate(fct_var = f['var'].astype("category"))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\user_name\miniconda3\envs\py38\lib\site-packages\pipda\register.py", line 396, in wrapper
return calling_rule(generic, args, kwargs, envdata)
File "C:\Users\user_name\miniconda3\envs\py38\lib\site-packages\pipda\_calling.py", line 93, in verb_calling_rule3
return generic(*args, **kwargs)
File "C:\Users\user_name\miniconda3\envs\py38\lib\functools.py", line 872, in wrapper
raise TypeError(f'{funcname} requires at least '
TypeError: _not_implemented requires at least 1 positional argument
Originally posted by @GitHunter0 in https://github.com/pwwang/datar/discussions/48#discussioncomment-1286583
doc raw python repl