DOC/CLN: Fix various docstring errors by dsaxton · Pull Request #25295 · pandas-dev/pandas (original) (raw)
Makes sense though for now just keep it limited to the ones already in this PR. Can tackle others in a follow up if required
Sent from my iPhone
On Feb 16, 2019, at 5:36 AM, Daniel Saxton ***@***.***> wrote:@dsaxton commented on this pull request. In pandas/core/reshape/pivot.py: > @@ -467,20 +473,20 @@ def crosstab(index, columns, values=None, rownames=None, colnames=None, >>> foo = pd.Categorical(['a', 'b'], categories=['a', 'b', 'c']) >>> bar = pd.Categorical(['d', 'e'], categories=['d', 'e', 'f']) - >>> crosstab(foo, bar) # 'c' and 'f' are not represented in the data, + >>> pd.crosstab(foo, bar) # 'c' and 'f' are not represented in the data, + ... # doctest: +SKIP Good idea. I also noticed that the doctest comments are exposed in the documentation:https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.crosstab.html I removed them for crosstab and the docstring still validates, so maybe worth trying to do this elsewhere as well? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.