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

internals: rewrite $describe() #717

Merged
merged 10 commits into from
Jan 20, 2024
Merged

internals: rewrite $describe() #717

merged 10 commits into from
Jan 20, 2024

Conversation

etiennebacher
Copy link
Collaborator

@etiennebacher etiennebacher commented Jan 19, 2024

Close #614

The first 4/5 of the function is directly adapted from the python code but the last 1/5 (from transpose()) was annoying to do so I found another way.

This makes the code longer but easier to read (IMO). However there's no new feature so what was #614 about in the first place?

@etiennebacher etiennebacher marked this pull request as draft January 19, 2024 22:34
@eitsupi
Copy link
Collaborator

eitsupi commented Jan 20, 2024

However there's no new feature so what was #614 about in the first place?

Oh, sorry. Thanks for taking a look at this. My point in #614 was that Python and R return different things (e.g. I don't think R provided statistics for columns of type string, for example).

R/dataframe__frame.R Outdated Show resolved Hide resolved
Copy link
Collaborator

@eitsupi eitsupi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that R users are likely to be interested in statistics, it may be worth adding an option to modify the algorithm for calculating quartiles.
See pola-rs/polars#13480.

@etiennebacher
Copy link
Collaborator Author

Good idea, I added it

@etiennebacher etiennebacher marked this pull request as ready for review January 20, 2024 12:47
Merge branch 'main' into rewrite-describe

# Conflicts:
#	NEWS.md
Copy link
Collaborator

@eitsupi eitsupi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@eitsupi eitsupi merged commit 214c740 into main Jan 20, 2024
17 checks passed
@eitsupi eitsupi deleted the rewrite-describe branch January 20, 2024 13:31
@eitsupi
Copy link
Collaborator

eitsupi commented Jan 20, 2024

Related PR for Python Polars not merged yet: pola-rs/polars#13720

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 this pull request may close these issues.

Rewrite <DataFrame>$describe
2 participants