-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
docs: Revise and rework user-guide/expressions #19360
docs: Revise and rework user-guide/expressions #19360
Conversation
2dd881c
to
4041c8b
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #19360 +/- ##
==========================================
- Coverage 79.72% 79.71% -0.01%
==========================================
Files 1542 1542
Lines 212197 212197
Branches 2449 2449
==========================================
- Hits 169169 169156 -13
- Misses 42473 42486 +13
Partials 555 555 ☔ View full report in Codecov by Sentry. |
@stinodego could you review this one this week? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the points below for some general feedback. Take these as suggestions, not law :)
- Overview page: There are quite a lot of subchapters - perhaps we can group them in a sensible way at least in the overview (e.g. put all the namespaces (struct, string, ...) together, put all operation types together (window, folds, ...), you get the picture).
- Basic operations: n_unique feels a bit out of place here - it would fit better in the Aggregation section.
- Expression expansion: The naming sections feels out of place - it's good to mention suffix/prefix but otherwise it's not related to expression expansion.
- Expression expansion: We shouldn't list the full selector API in the user guide - we have the API reference for this.
- Feels like plugins should be its own chapter - not part of Expressions.
- NumPy functions: feels like this shouldn't be under expressions, rather in an 'interop' chapter somewhere.
- A lot of Rust examples seem to be missing still.
- Nice that we can better display math now!
docs/source/src/python/user-guide/expressions/expression-expansion.py
Outdated
Show resolved
Hide resolved
docs/source/user-guide/expressions/categorical-data-and-enums.md
Outdated
Show resolved
Hide resolved
Thanks a lot for all of the review comments. Some things I'd like to push back on:
Strongly disagree. The namespace
Yeah, true, but in here I'm grouping the selectors by purpose whereas the API reference just lists everything in alphabetical order. As for the missing Rust examples, I wanted my prose / examples reviewed before I put in the effort to translate everything to Rust. |
As far as the NumPy page goes, should the “Ecosystem” chapter be named “Interoperability” and include NumPy there? |
Well, it just doesn't really feel like a 'basic' operation.
I'd argue doing something like
Hm, looking at the API reference, we can definitely improve the selectors section. But sure, let's keep the overview in the user guide for now at least!
Yes, definitely. Those can be done in another PR / by someone else. I was just pointing it out.
I don't think the purpose of the Ecosystem chapter really aligns with listing various library-specific interoperability quirks. I would envision an actual |
4041c8b
to
4073f71
Compare
b04a8ff
to
0359efa
Compare
I'm marking this PR as ready now because it just keeps growing and this already introduces quite some useful improvements. Outstanding work / possible future improvements:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to merge if CI is green 👍
PLEASE do not review this PR by looking at the diff.
Checkout the PR and build the docs with
mkdocs serve
.EDIT: See this comment of mine for outstanding work / possible improvements.