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

Register all functions as verbs #148

Closed
pwwang opened this issue Oct 1, 2022 Discussed in #147 · 0 comments · Fixed by #157
Closed

Register all functions as verbs #148

pwwang opened this issue Oct 1, 2022 Discussed in #147 · 0 comments · Fixed by #157

Comments

@pwwang
Copy link
Owner

pwwang commented Oct 1, 2022

Discussed in #147

Originally posted by GG-Delta September 21, 2022
Hey there,
I am still amazed by your wonderful and extremely powerful package! Using it on a daily basis. Please allow me a short question on chaining base operations using pipes. Let me shortly use one of your own (slightly modified) examples to quickly see my question:
df4 = tibble.tibble(A = ["apple","cherry","orange","banana"], B = [25,np.nan,15,28])

Quickly checking for the presence of NaN in the data frame using datar works fine (as expected):
base.sum(base.any_na(df4)) results in the correct response:
1

Question:
Is it somehow possible to re-formulate the above operations by chaining them together via pipe? To give you an impression: df4 >> base.any_na() >> base.sum()
This code doesn't work right now.
Do you you have any hint for me whether I can make it work or if I am missing something? Or alternatively, this kind of chaining up basic operations is not supported (similar to some R functions)?

Thanks a lot for your help!
All the best,
Gernot

Screenshot 2022-09-21 at 10 02 00

This was referenced Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant