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

Added docstrings to any undocumented public-facing functions #340

Merged
merged 2 commits into from
Mar 28, 2023

Conversation

erin2722
Copy link
Contributor

Based on the discussion in #298, I combed through the codebase and added docstrings to any public-facing functions that did not already have them.

Let me know if this was overkill, and I can go back through and remove some docstrings, or change the formatting!

@erin2722 erin2722 changed the title Added docstrings to any Undocumented public-facing functions Added docstrings to any undocumented public-facing functions Mar 26, 2023
Copy link
Collaborator

@tjburch tjburch left a comment

Choose a reason for hiding this comment

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

Overall I think this is really nice! Thanks for the contribution. I'll give some time for others to comment, since this has been a point of discussion for quite some time now.

Get amateur draft results by team and year.

ARGUMENTS
team: Team code which you want to check.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would say "see docs for list of team codes" and even possibly link if not too ugly?

https://github.com/jldbc/pybaseball/blob/master/docs/amateur_draft_by_team.md

RETURNS
A dataframe containing pitch-level statcast data for the given dates, along with these colummns added:

Mx: The amount of movement in the x-direction due to the Magnus effect alone. (Positive is towards first
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe this is a lot to have in the code? I could see either way, what do you think? This is another place we could say "see the docs for the added columns."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree it is a lot-- I just changed it to a bit of an in between, where I indicate that the other columns exist but leave the descriptions of them to the docs.

@erin2722
Copy link
Contributor Author

Thank you for the quick feedback @tjburch !! I just responded to the initial feedback, and will respond to more as it comes up!

@erin2722 erin2722 requested a review from tjburch March 27, 2023 16:10
@tjburch
Copy link
Collaborator

tjburch commented Mar 27, 2023

cool, this lgtm. Appreciate it. I'll leave it to @schorrm to merge, so he at least gets eyes on it since it's been an ongoing discussion.

@schorrm
Copy link
Collaborator

schorrm commented Mar 27, 2023

LGTM!

@tjburch
Copy link
Collaborator

tjburch commented Mar 27, 2023

This CI business is getting to be a nightmare.

@tjburch
Copy link
Collaborator

tjburch commented Mar 28, 2023

Ok, I resolved the CI stuff in another PR. I'll just go ahead and merge this. Since it's only docstrings, I'm not too worried about it. Thanks for the contribution @erin2722!

@tjburch tjburch merged commit 3ccd099 into jldbc:master Mar 28, 2023
@tjburch tjburch mentioned this pull request Mar 28, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants