Repository navigation
Describe doc - #4762
Describe doc#4762
Conversation
| @derived_from(pd.DataFrame) | ||
| def describe(self, split_every=False, percentiles=None, percentiles_method='default'): | ||
| # currently, only numeric describe is supported | ||
| """Currently, only numeric describe is supported """ |
There was a problem hiding this comment.
We might use this function as a test for the derived_from functionality change in this PR.
As an example, I think that there is already a test in test_utils.py that import dask.dataframe and checks the state of one of the docstrings.
| ] | ||
| if extra: | ||
| bits.insert(1, extra.rstrip('\n') + '\n\n') | ||
| bits.insert(1, indent) |
There was a problem hiding this comment.
Would it be possible to move extra below the "this is copied" disclaimer?
Signature: dd.DataFrame.describe(self, split_every=False, percentiles=None, percentiles_method='default')
Docstring:
Generate descriptive statistics that summarize the central tendency,
dispersion and shape of a dataset's distribution, excluding
``NaN`` values.
Currently, only numeric describe is supported
This docstring was copied from pandas.core.frame.DataFrame.describe.
Some inconsistencies with the Dask version may exist.
Analyzes both numeric and object series, as well
as ``DataFrame`` column sets of mixed data types. The output
will vary depending on what is provided. Refer to the notes
below for more detail.
|
The errors are py2-only, and I really don't understand them or know if they are caused by this code (seem to be import errors of "methods"). Help! |
The docstring munging code runs at import time (we have I'm not sure if that helps or not. Hopefully those steps move towards a good solution. |
(this is only relavant to -OO optimized bytecode, which strips docstrings)
|
There we go :) It was to do with docstring stripping during bytecode optimisation. |
|
I think this should be merged now, can press the button if no one objects by tomorrow morning |
* Add disclaimer to dataframe.describe() [skip ci] Fixes dask#4401 * Simplest revamt of dataframe doc generation * add tests * extra docstring after disclaimer * add a little to the relavant docstring [skip ci] * py2fixes * Do not add lines to empty docstring (this is only relavant to -OO optimized bytecode, which strips docstrings) * skip on py2
flake8 daskWritten to add extra information to the derived docstring for dataframe.describe ( fixes #4401 )
partially fixes #3265 (simplest solution)