-
Notifications
You must be signed in to change notification settings - Fork 123
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: clean lazyframe docstrings #1466
docs: clean lazyframe docstrings #1466
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! just got a minor comment which might be good to address while we're doing these
narwhals/dataframe.py
Outdated
... return df.join(other_any, left_on="ham", right_on="ham") | ||
>>> def agnostic_join_on_ham( | ||
... df_native: IntoFrameT, | ||
... other_any_native: IntoFrameT, |
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.
should this be other_native
?
narwhals/dataframe.py
Outdated
... return df.join_asof(other_any, on="datetime", strategy=strategy) | ||
>>> def agnostic_join_asof_datetime( | ||
... df_native: IntoFrameT, | ||
... other_any_native: IntoFrameT, |
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.
same
narwhals/dataframe.py
Outdated
... return df.join_asof(other_any, on="datetime", by="ticker") | ||
>>> def agnostic_join_asof_datetime_by_ticker( | ||
... df_native: IntoFrameT, | ||
... other_any_native: IntoFrameT, |
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.
same
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 !
btw reckon the lazyframe docstrings should perhaps all show examples with just:
- polars LazyFrame
- Dask
?
Agree! I can refine them further |
What type of PR is this? (check all applicable)
Related issues
NA
Checklist
If you have comments or can explain your changes, please do so below
Cleans lazyframe docstrings
lf_pl
from_native
/to_native
instead ofnarwhalify
agnostic_func
instead offunc