You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: