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

docs: clean lazyframe docstrings #1466

Merged
merged 2 commits into from
Nov 30, 2024

Conversation

AlessandroMiola
Copy link
Contributor

What type of PR is this? (check all applicable)

  • πŸ’Ύ Refactor
  • ✨ Feature
  • πŸ› Bug Fix
  • πŸ”§ Optimization
  • πŸ“ Documentation
  • βœ… Test
  • 🐳 Other

Related issues

NA

Checklist

  • Code follows style guide (ruff)
  • Tests added
  • Documented the changes

If you have comments or can explain your changes, please do so below

Cleans lazyframe docstrings

  • All references to lazyframes as lf_pl
  • from_native/to_native instead of narwhalify
  • agnostic_func instead of func

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Nov 29, 2024
@AlessandroMiola AlessandroMiola marked this pull request as ready for review November 29, 2024 19:30
Copy link
Member

@MarcoGorelli MarcoGorelli left a 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

... return df.join(other_any, left_on="ham", right_on="ham")
>>> def agnostic_join_on_ham(
... df_native: IntoFrameT,
... other_any_native: IntoFrameT,
Copy link
Member

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?

... return df.join_asof(other_any, on="datetime", strategy=strategy)
>>> def agnostic_join_asof_datetime(
... df_native: IntoFrameT,
... other_any_native: IntoFrameT,
Copy link
Member

Choose a reason for hiding this comment

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

same

... return df.join_asof(other_any, on="datetime", by="ticker")
>>> def agnostic_join_asof_datetime_by_ticker(
... df_native: IntoFrameT,
... other_any_native: IntoFrameT,
Copy link
Member

Choose a reason for hiding this comment

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

same

Copy link
Member

@MarcoGorelli MarcoGorelli left a 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
    ?

@MarcoGorelli MarcoGorelli merged commit 635434e into narwhals-dev:main Nov 30, 2024
24 checks passed
@AlessandroMiola
Copy link
Contributor Author

btw reckon the lazyframe docstrings should perhaps all show examples with just:

  • polars LazyFrame
  • Dask
    ?

Agree! I can refine them further

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants