-
Notifications
You must be signed in to change notification settings - Fork 121
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: add missing methods in api reference #1144
docs: add missing methods in api reference #1144
Conversation
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.
thanks @AlessandroMiola for doing this!
utils/check_api_reference.py
Outdated
@@ -121,6 +121,72 @@ | |||
print(extra) # noqa: T201 | |||
ret = 1 | |||
|
|||
# Series.cat methods |
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.
is it possible to loop over ['cat', 'dt', 'str', 'name']
for these? there's a lot of repetition currently
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.
Sure! If I'm not wrong, "name"
isn't a real namespace for Series
as it is for Expr
, so I excluded it from the loop. lmk if that's ok or if I am missing something.
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.
Thanks @AlessandroMiola ! This is amazing!
If you fancy, as follow up we could also add a check for the difference between Expr vs Series namespaces internal methods, similar to what already happens in lines 212-229
Yep, sure. Sorry, forgot it earlier π₯Ά |
β¦#1144) * docs: add check on Series.dt methods being in api-reference * docs: add check on Series.cat methods being in api-reference * chore: remove extra blanks * docs: add check on documented, yet no longer existent methods on dtype * docs: add check on Expr.{cat, dt, name, str} methods being in api-reference * chore: remove useless check and move checks on Series.{cat, dt, str} higher up * docs: apply suggested changes
What type of PR is this? (check all applicable)
Related issues
Checklist
If you have comments or can explain your changes, please do so below.
Extends
utils/check_api_reference.py
to include methods fromSeries.cat
,Series.dt
,Expr.cat
,Expr.dt
,Expr.name
andExpr.str
. (Hope I haven't missed anything:))