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: document arguments and returns in DataFrame class #1594

Merged

Conversation

marenwestermann
Copy link
Contributor

@marenwestermann marenwestermann commented Dec 14, 2024

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

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

Related issues

Checklist

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

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

This is currently work in progress. Feel free to start reviewing. :)

@@ -581,8 +584,15 @@ def to_pandas(self) -> pd.DataFrame:
def write_csv(self, file: str | Path | BytesIO | None = None) -> Any:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The return type here should be str | None from my understanding. I changed this but then got mypy errors. I started digging into the issue but then decided to leave it like it is for now in favour of getting the documentation done. I can open an issue for it if you like.

Copy link
Member

Choose a reason for hiding this comment

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

Sure thanks!

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 @marenwestermann - sure, happy to start with these and incrementally add more in multiple PRs, feel free to ship it

@MarcoGorelli MarcoGorelli added the documentation Improvements or additions to documentation label Dec 15, 2024
@marenwestermann marenwestermann changed the title docs: [WIP] document arguments and returns in DataFrame class docs: document arguments and returns in DataFrame class Dec 15, 2024
@marenwestermann marenwestermann merged commit 5adb37b into narwhals-dev:main Dec 15, 2024
25 checks passed
@marenwestermann marenwestermann deleted the doc-dataframe-return branch December 15, 2024 14:21
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