Skip to content

DOC: ecosystem pandas-stubs information #43207

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

Merged
merged 11 commits into from
Sep 9, 2021

Conversation

zkrolikowski-vl
Copy link
Contributor

@zkrolikowski-vl zkrolikowski-vl commented Aug 25, 2021

  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry

Added information about pandas-stubs to both the .rst and .md ecosystem doc files.

closes #43197

@zkrolikowski-vl zkrolikowski-vl changed the title Doc/ecosystem pandas stubs DOC: ecosystem_pandas_stubs Aug 25, 2021
@zkrolikowski-vl zkrolikowski-vl changed the title DOC: ecosystem_pandas_stubs DOC: ecosystem pandas stubs Aug 25, 2021
@zkrolikowski-vl zkrolikowski-vl changed the title DOC: ecosystem pandas stubs DOC: ecosystem pandas-stubs information Aug 25, 2021
Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

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

Looks good, couple of ideas:

Maybe instead of a section Type stubs that it's likely to never have anything more than this project, a section development tools (or a similar name) could be used. I know there were some interest in a package for pandas stuff for users of certain IDEs. I think having those together could make sense.

Then, I wonder if having a usage example would help more than this technical information. It's clear to me, but I wonder if many of our users are not familiar with type annotations, and it won't be immediately obvious what this means. It's a personal opinion, and you can surely disagree with, but I feel like providing a short sentence saying that pandas-stubs enables type checking in pandas should be enough. If then we just have an example of installing with pip/conda, a sample file using pandas with annotations, and a call to mypy (maybe a call with and without installing pandas-stubs.

In any case, happy to get it merged like this too.

@zkrolikowski-vl
Copy link
Contributor Author

@datapythonista

Decided to make some changes based on your feedback:

  • Reduced the amount of technical detail
  • Included an installation guide
  • Included an example

Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

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

Great example, very clear. Thanks for the update.

@zkrolikowski-vl zkrolikowski-vl force-pushed the doc/ecosystem_pandas_stubs branch 2 times, most recently from 52fd713 to a767611 Compare August 30, 2021 10:18
@zkrolikowski-vl
Copy link
Contributor Author

zkrolikowski-vl commented Aug 30, 2021

@datapythonista Do I have to take some action for the CI to pass? It times-out after an hour.

@alimcmaster1 alimcmaster1 added this to the 1.4 milestone Aug 31, 2021
@alimcmaster1
Copy link
Member

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

@alimcmaster1
Copy link
Member

@datapythonista Do I have to take some action for the CI to pass? It times-out after an hour.

I have just restarted CI now. Hopefully should run to completion this time

@phofl
Copy link
Member

phofl commented Aug 31, 2021

pre-commit raises errors. You should fix them first

`pandas-stubs <https://github.com/VirtusLab/pandas-stubs>`__
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

pandas doesn't expose any type information to the user by itself.
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not true there is lots of type information, explain how this is different.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

is this better? While pandas repository is partially typed, the package itself doesn't expose this information for external use.

@@ -388,3 +388,65 @@ authors to coordinate on the namespace.
| [pint-pandas](https://github.com/hgrecco/pint-pandas) | `pint` | `Series`, `DataFrame` |
| [composeml](https://github.com/alteryx/compose) | `slice` | `DataFrame` |
| [woodwork](https://github.com/alteryx/woodwork) | `slice` | `Series`, `DataFrame` |

Copy link
Contributor

Choose a reason for hiding this comment

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

umm what is this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you mean the empty line I removed it. I'm using Unix line endings.

@zkrolikowski-vl
Copy link
Contributor Author

zkrolikowski-vl commented Sep 1, 2021

I will get around to fixing the pre-commit issues locally.

@zkrolikowski-vl zkrolikowski-vl force-pushed the doc/ecosystem_pandas_stubs branch from 7f03a5b to 045e19f Compare September 8, 2021 08:50
@lithomas1 lithomas1 requested review from jreback and removed request for jreback September 9, 2021 00:08
@jreback jreback merged commit 4a2e467 into pandas-dev:master Sep 9, 2021
@jreback
Copy link
Contributor

jreback commented Sep 9, 2021

thanks @zkrolikowski-vl

@zkrolikowski-vl zkrolikowski-vl deleted the doc/ecosystem_pandas_stubs branch September 9, 2021 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to make pandas-stubs library compliant with pandas development team requirements
7 participants