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

arrange together with desc is producing an error #130

Closed
GG-Delta opened this issue Aug 2, 2022 · 0 comments
Closed

arrange together with desc is producing an error #130

GG-Delta opened this issue Aug 2, 2022 · 0 comments

Comments

@GG-Delta
Copy link

GG-Delta commented Aug 2, 2022

Hey pwwang!

I am currently starting to work with your great package and I am still accommodating. Please allow me to share the following error with you (using one of your previous examples) that happens when trying to sort values in descending order (arrange and desc):

Example data frame:

df = tibble.tibble(A = ["apple","cherry","orange","banana"], B = [25,37,15,28])

This works well as expected:
Sorting the data frame based on values in column B using only arrange:

df >> dplyr.arrange(df.B)

This works produces an error (please see also the screenshot below):
Sorting the data frame based on values in column B (descending order) using arrange together with desc:

df >> dplyr.arrange(dplyr.desc(df.B))

May I ask whether I am missing here something? I made an effort to follow your very helpful documentation: https://pwwang.github.io/datar/notebooks/arrange/

Thank you,

Gernot

Screenshot 2022-08-02 at 13 35 05

@GG-Delta GG-Delta closed this as completed Aug 2, 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

No branches or pull requests

1 participant