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

Ongoing: Fixing docstrings #2916

Closed
24 of 31 tasks
ghost opened this issue Feb 23, 2013 · 11 comments
Closed
24 of 31 tasks

Ongoing: Fixing docstrings #2916

ghost opened this issue Feb 23, 2013 · 11 comments

Comments

@ghost
Copy link

ghost commented Feb 23, 2013

Just pushed scripts/find_undoc_args.py. putting this here
for the occasional drive-by contributor, and newcomers who would appreciate
an opportunity to make a "low-risk" first PR.

@wesm
Copy link
Member

wesm commented Feb 24, 2013

that is pretty sweet

@ghost
Copy link
Author

ghost commented Feb 25, 2013

updated with GH task list ftw.

@ghost
Copy link
Author

ghost commented Feb 25, 2013

Turns out there's a PEP on docstring style, as well as alternatives like epytext, and even some tool support for this very purpose.

ghost pushed a commit that referenced this issue Apr 6, 2013
ghost pushed a commit that referenced this issue Apr 22, 2013
DOC: Adding parameters to frequencies, offsets (issue #2916)
@karmel
Copy link
Contributor

karmel commented Apr 22, 2013

I think 9 and 31 here were previously completed:

  1. pandas/stats/math.py:93 (calc_F()) - Missing[1/6]: ['R']
    0dc4f33

  2. pandas/tseries/tools.py:51 (to_datetime()) - Missing[3/6]: ['box', 'dayfirst', 'format']
    0f192ea

And the 'label' parameter in 7 does not actually appear to be used in the lreshape function as far as I can tell:
7) pandas/core/reshape.py:601 (lreshape()) - Missing[1/4]: ['label']
https://github.com/pydata/pandas/blob/master/pandas/core/reshape.py#L617

@ghost
Copy link
Author

ghost commented Apr 23, 2013

Some may just be false positives as the list was generated by a script.
lreshape's commit message calls it "experimental", no harm in leaving it in for now.

Marked all the items you mentioned as done. Thanks.

ghost pushed a commit that referenced this issue Apr 24, 2013
DOC: Adding parameters address issue sub-points 8 and 10 - 24 (issue #2916)
yarikoptic added a commit to neurodebian/pandas that referenced this issue Jun 3, 2013
Version 0.11

* tag 'v0.11.0': (75 commits)
  RLS: Version 0.11
  BUG: respect passed chunksize in read_csv when using get_chunk function. close pandas-dev#3406
  DOC: Adding parameters to frequencies, offsets (issue pandas-dev#2916)
  BUG: fix broken validators again
  Revert "BUG: config.is_one_of_factory is broken"
  DOC: minor indexing.rst doc updates
  BUG: config.is_one_of_factory is broken
  TST: add test for config.is_one_of_factory
  DOC: RELEASE.rst mention new options disp.height/width and deprecated line_width
  BUG: fix validators for config options
  ENH: default dimensions for ip zmq frontends derive from disp.height/width defaults
  ENH: let display.notebook_repr_html control HTML repr in qtconsole again.
  ENH: fix df.repr() for scripts (keep GH1611 away), accept None for max_cols/rows
  BUG: rework get_console_size to handle cases properly
  ENH: optimize _repr_fits_horizontal_, to_string only on slice of interest
  BUG: for numerical option, sentry should be another Type, not 0
  TST: fix test_repr_non_interactive passing by accident
  TST: adjust tests to accommodate new defaults for display options
  ENH: Adjust height/width/max_rows defaults to match informal survey results
  CLN: convert test utilizing disp.line_width to disp.width
  ...
@lodagro
Copy link
Contributor

lodagro commented Jun 7, 2013

fyi @klen added pep257 docstring style checking to the develop branch of his vim plugin python-mode and his code audit tool for python pylama.

yyl added a commit to yyl/pandas that referenced this issue Jan 19, 2015
Add ax docstring. 
Address issue generated by `scripts/find_undoc_args.py`.
@yyl
Copy link
Contributor

yyl commented Jan 19, 2015

Hi,

I came across this and figured this was a good place for me to get familiar with and start contributing to pandas.

The list seems pretty old as when I click through the line of code of each item in the list, the referred line of code is not there anymore.

I went ahead and used scripts/find_undoc_args.py to identify more similar issues. There were several of them, and I chose one of them to start.

Pull request is here #9293.

Please let me know if this is a proper way to contribute.

shoyer added a commit that referenced this issue Jan 19, 2015
@shoyer
Copy link
Member

shoyer commented Jan 19, 2015

@yyl Yes, improvements to documentation/docstrings are always appreciated 👍.

@jamesredwards
Copy link

Hi, I was hoping to contribute and this looked like somewhere good to start, but I'm having some issues with the script, for example:

./find_undoc_args.py -m pandas -G pandas-dev -p pandas | head -n1

- [ ] 1) [core/algorithms.py:527 (factorize())](https://github.com/pandas-dev/blob/master/core/algorithms.py#L527) -  __Missing__[1/5]: ['order']

any ideas? seem to be using the path flag wrong, but i can't figure it out.
thanks

@ProsperousHeart
Copy link
Contributor

I'd like to contribute, but I'm not quite sure what some of the ask is here...

@jreback
Copy link
Contributor

jreback commented Jan 1, 2019

closing this as @datapythonista has created new specific issues & we have much better validation to catch things like this.

@jreback jreback closed this as completed Jan 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants