title stringlengths 1 185 | diff stringlengths 0 32.2M | body stringlengths 0 123k ⌀ | url stringlengths 57 58 | created_at stringlengths 20 20 | closed_at stringlengths 20 20 | merged_at stringlengths 20 20 ⌀ | updated_at stringlengths 20 20 |
|---|---|---|---|---|---|---|---|
DOC: update the docstring pandas.Series.dt.is_month_start | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index e5e9bba269fd4..ec5542f120bc7 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -1727,11 +1727,61 @@ def freq(self, value):
is_month_start = _field_accessor(
'is_month_start',
... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X ] PR title is "DOC: update the <your-function-or-method> docstring"
- [X] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstrea... | https://api.github.com/repos/pandas-dev/pandas/pulls/20161 | 2018-03-10T14:41:14Z | 2018-03-10T15:30:37Z | null | 2018-03-10T15:30:37Z |
DOC: update the pandas.DataFrame.notna and pandas.Series.notna docstring | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index c95d7cacf8c97..bfb251b0995ec 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5591,7 +5591,7 @@ def asof(self, where, subset=None):
NA values, such as None or :attr:`numpy.NaN`, gets mapped to True
values.
... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20160 | 2018-03-10T14:40:30Z | 2018-03-13T13:49:52Z | 2018-03-13T13:49:52Z | 2018-03-14T11:57:19Z |
DOC: update the pandas.Series.dt.total_seconds docstring | diff --git a/pandas/core/indexes/timedeltas.py b/pandas/core/indexes/timedeltas.py
index 969afccdbc755..b5a08fc0168e4 100644
--- a/pandas/core/indexes/timedeltas.py
+++ b/pandas/core/indexes/timedeltas.py
@@ -500,7 +500,57 @@ def f(x):
def total_seconds(self):
"""
- Total duration of each element... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [X] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20159 | 2018-03-10T14:37:47Z | 2018-03-13T14:00:51Z | 2018-03-13T14:00:51Z | 2018-03-13T20:08:59Z |
DOC: update the pandas.DataFrame.plot.bar docsctring | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index 2c2521ad50ce0..0c2560abb0165 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -2835,19 +2835,86 @@ def line(self, x=None, y=None, **kwds):
def bar(self, x=None, y=None, **kwds):
"""
- Vertical bar plot
+... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20158 | 2018-03-10T14:35:56Z | 2018-03-13T10:47:52Z | 2018-03-13T10:47:52Z | 2018-03-13T10:49:04Z |
DOC: Improved the docstring of pandas.plotting._core.FramePlotMethods… | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index f587cb91ab932..a791822042fbe 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -1409,7 +1409,7 @@ def orientation(self):
Returns
-------
- axes : matplotlib.AxesSubplot or np.array of them
+ ax... | ….barh()
- Added examples section
- Added extended summary
- Added argument explanation
Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [ X] PR title is "DOC: update the <your-function-or-method> docstring"
- [ X] The validation script passes: `scripts/valida... | https://api.github.com/repos/pandas-dev/pandas/pulls/20157 | 2018-03-10T14:34:13Z | 2018-03-11T21:54:28Z | 2018-03-11T21:54:28Z | 2018-03-12T09:33:55Z |
DOC: update the Series.align docstring | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 069f0372ab6e1..ccdd7daad7e65 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -2576,10 +2576,135 @@ def _needs_reindex_multi(self, axes, method, level):
"""
return False
- @Appender(generic._shared_docs['align'] % _... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20156 | 2018-03-10T14:33:08Z | 2018-11-01T01:35:19Z | null | 2018-11-01T01:35:19Z |
DOC: update the pandas.DataFrame.plot.hist docstring | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index 2c2521ad50ce0..2da9ad597a0bc 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -2951,21 +2951,47 @@ def box(self, by=None, **kwds):
def hist(self, by=None, bins=10, **kwds):
"""
- Histogram
+ Draw ... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20155 | 2018-03-10T14:33:04Z | 2018-03-19T20:57:20Z | 2018-03-19T20:57:20Z | 2018-03-19T20:57:39Z |
DOC: Update the pandas.Series.str.count() docstring (Delhi) | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index fac607f4621a8..59d67b4088505 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -202,15 +202,65 @@ def str_count(arr, pat, flags=0):
"""
Count occurrences of pattern in each string of the Series/Index.
+ This function is ... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [ ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20154 | 2018-03-10T14:28:29Z | 2018-03-14T18:29:54Z | 2018-03-14T18:29:54Z | 2018-03-19T11:26:36Z |
DOC: Update the pandas.Series.str.find() (Delhi) | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index cb55108e9d05a..53f7358033300 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -1924,6 +1924,8 @@ def extractall(self, pat, flags=0):
return str_extractall(self._orig, pat, flags=flags)
_shared_docs['find'] = ("""
+ ... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the pandas.Series.str.find docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py pandas.Series.str.find`
- [x] The PEP8 style check passes: `git diff upstream/maste... | https://api.github.com/repos/pandas-dev/pandas/pulls/20153 | 2018-03-10T14:27:24Z | 2018-11-01T01:34:58Z | null | 2018-11-01T01:34:58Z |
DOC: update pandas.DataFrame.boxplot docstring. Fixes #8847 | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index 6c3d07124215b..b8485eed758a1 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -1995,50 +1995,164 @@ def plot_series(data, kind='line', ax=None, # Series unique
_shared_docs['boxplot'] = """
- Make a ... | - [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py pandas.DataFrame.boxplot`
- [x] The PEP8 style check passes: `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] The html version looks good: `python doc/make.py --sin... | https://api.github.com/repos/pandas-dev/pandas/pulls/20152 | 2018-03-10T14:26:46Z | 2018-04-03T07:02:31Z | 2018-04-03T07:02:31Z | 2018-04-03T18:36:35Z |
DOC: improved docstring for pandas.pivot | diff --git a/pandas/core/reshape/reshape.py b/pandas/core/reshape/reshape.py
index 3ef152d091b24..b752df192deea 100644
--- a/pandas/core/reshape/reshape.py
+++ b/pandas/core/reshape/reshape.py
@@ -406,31 +406,73 @@ def pivot(self, index=None, columns=None, values=None):
def pivot_simple(index, columns, values):
... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [Y] PR title is "DOC: update the <your-function-or-method> docstring"
- [Y ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [ ] The PEP8 style check passes: `git diff upstrea... | https://api.github.com/repos/pandas-dev/pandas/pulls/20151 | 2018-03-10T14:25:17Z | 2018-10-29T23:17:53Z | null | 2018-10-29T23:17:53Z |
DOC: update the pandas.Series.dt.is_leap_year docstring | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index 4baae4f0e7f1a..ac7db1dbc4b8f 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -1945,7 +1945,43 @@ def freq(self, value):
is_leap_year = _field_accessor(
'is_leap_year',
'i... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x ] PR title is "DOC: update the <your-function-or-method> docstring"
- [x ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x ] The PEP8 style check passes: `git diff upstr... | https://api.github.com/repos/pandas-dev/pandas/pulls/20150 | 2018-03-10T14:23:37Z | 2018-03-17T11:31:06Z | 2018-03-17T11:31:06Z | 2018-03-17T11:31:14Z |
DOC: update the to_json() docstring | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index a893b2ba1a189..bc5b77a8c19cb 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -1664,9 +1664,11 @@ def to_json(self, path_or_buf=None, orient=None, date_format=None,
Parameters
----------
- path_or_buf : the ... | Fixes validation errors and adds an example for each orientation.
- [ x] PR title is "DOC: update the <your-function-or-method> docstring"
- [ x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [ x] The PEP8 style check passes: `git diff upstream/master -u -- "*.py" | fla... | https://api.github.com/repos/pandas-dev/pandas/pulls/20149 | 2018-03-10T14:22:48Z | 2018-03-13T21:27:21Z | 2018-03-13T21:27:21Z | 2018-03-13T21:27:45Z |
DOC: Improved the docstring of pandas.Series.filter | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index f33b5746a29d3..c1964025eff26 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3924,14 +3924,14 @@ def filter(self, items=None, like=None, regex=None, axis=None):
Parameters
----------
items : list-like
- ... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20148 | 2018-03-10T14:16:18Z | 2018-07-07T20:45:41Z | 2018-07-07T20:45:40Z | 2018-07-07T20:45:51Z |
DOC:Improved the docstring of pandas.melt | diff --git a/pandas/core/reshape/melt.py b/pandas/core/reshape/melt.py
index 01445eb30a9e5..6687c11505d97 100644
--- a/pandas/core/reshape/melt.py
+++ b/pandas/core/reshape/melt.py
@@ -22,6 +22,99 @@
other='DataFrame.melt'))
def melt(frame, id_vars=None, value_vars=None, var_name=None,
value_... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [ ] PR title is "DOC: update the <your-function-or-method> docstring"
- [ ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [ ] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20147 | 2018-03-10T14:14:46Z | 2018-03-10T14:16:53Z | null | 2018-03-11T15:28:11Z |
DOC: update the pandas.Series.dt.is_month_start docstring | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index e5e9bba269fd4..11506a69625c3 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -1727,7 +1727,32 @@ def freq(self, value):
is_month_start = _field_accessor(
'is_month_start',
... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [ X] PR title is "DOC: update the <your-function-or-method> docstring"
- [ X] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [ X] The PEP8 style check passes: `git diff upstr... | https://api.github.com/repos/pandas-dev/pandas/pulls/20146 | 2018-03-10T14:11:26Z | 2018-10-09T10:12:18Z | null | 2023-05-11T01:17:33Z |
DOC: Added examples to the IndexOpsmixin.value_counts() docstring | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 6625a3bbe97d7..4ea8c43b640fb 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -1008,7 +1008,7 @@ def map_f(values, f):
def value_counts(self, normalize=False, sort=True, ascending=False,
bins=None, dropna=True):
... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [ ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20145 | 2018-03-10T14:11:13Z | 2018-07-07T16:32:12Z | 2018-07-07T16:32:12Z | 2022-10-28T10:17:41Z |
Updated doc for pandas.Series.str.find method | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the pandas.Series.str.find docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py pandas.Series.str.find`
- [x] The PEP8 style check passes: `git diff upstream/maste... | https://api.github.com/repos/pandas-dev/pandas/pulls/20144 | 2018-03-10T14:10:35Z | 2018-03-10T14:19:10Z | null | 2020-08-08T14:11:27Z | |
DOC: update the pandas.date_range() docstring | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index e5e9bba269fd4..2de95caafdd6c 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -2202,29 +2202,30 @@ def _generate_regular_range(start, end, periods, offset):
def date_range(start=None, end=None,... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20143 | 2018-03-10T14:10:29Z | 2018-03-11T11:59:33Z | 2018-03-11T11:59:33Z | 2018-03-11T15:29:29Z |
DOC: Improved the docstring of pandas.Series.dt.to_pytimedelta | diff --git a/pandas/core/indexes/accessors.py b/pandas/core/indexes/accessors.py
index c5b300848876e..8e61edd6c4029 100644
--- a/pandas/core/indexes/accessors.py
+++ b/pandas/core/indexes/accessors.py
@@ -157,6 +157,39 @@ class TimedeltaProperties(Properties):
"""
def to_pytimedelta(self):
+ """
+ ... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X ] PR title is "DOC: update the <your-function-or-method> docstring"
- [X] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstrea... | https://api.github.com/repos/pandas-dev/pandas/pulls/20142 | 2018-03-10T14:03:36Z | 2018-03-17T12:09:50Z | 2018-03-17T12:09:50Z | 2018-03-17T12:10:11Z |
DOC: Improved the docstring of str.extract() (Delhi) | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 93e6f8a53c804..9028ce1a77304 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -840,19 +840,22 @@ def _str_extract_frame(arr, pat, flags=0):
def str_extract(arr, pat, flags=0, expand=True):
r"""
+ Extract capture groups in t... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [X] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20141 | 2018-03-10T14:02:51Z | 2018-07-07T16:26:11Z | 2018-07-07T16:26:11Z | 2018-07-07T16:26:22Z |
DOC: improved the docstring of pandas.Index.min() | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 280b8849792e3..fc6550d45b0c3 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -801,7 +801,35 @@ def argmax(self, axis=None):
return nanops.nanargmax(self.values)
def min(self):
- """ The minimum value of the object """
+ ... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [X] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20140 | 2018-03-10T13:59:36Z | 2018-03-16T21:16:29Z | 2018-03-16T21:16:29Z | 2018-03-16T21:16:47Z |
DOC: pandas.DateTimeIndex.to_frame | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index b911f62b69e2a..e3c41c4df9a2d 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -1190,6 +1190,11 @@ def to_frame(self, index=True):
DataFrame
DataFrame containing the original Index data.
+ ... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [ X] PR title is "DOC: pandas.DateTimeIndex.to_frame"
- [X ] The validation script passes: `./scripts/validate_docstrings.py pandas.DatetimeIndex.to_frame`
- [ X] The PEP8 style check passes: `git diff upstream/master ... | https://api.github.com/repos/pandas-dev/pandas/pulls/20139 | 2018-03-10T13:57:25Z | 2018-03-16T21:22:50Z | 2018-03-16T21:22:50Z | 2018-03-16T21:22:50Z |
DOC: update the pandas.DataFrame.isna and pandas.Series.isna docstring | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 397726181d2fb..5dc17b73b7003 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5515,13 +5515,63 @@ def asof(self, where, subset=None):
# Action Methods
_shared_docs['isna'] = """
+ Detect missing values.
+
... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20138 | 2018-03-10T13:55:00Z | 2018-03-13T12:51:09Z | 2018-03-13T12:51:09Z | 2018-03-13T12:51:24Z |
DOC: update pandas.Series.rename_axis | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index a893b2ba1a189..e276cc9abfdf2 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -913,20 +913,25 @@ def f(x):
rename.__doc__ = _shared_docs['rename']
def rename_axis(self, mapper, axis=0, copy=True, inplace=False):
- "... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [X] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20137 | 2018-03-10T13:51:44Z | 2018-03-13T21:22:54Z | 2018-03-13T21:22:54Z | 2018-03-13T21:22:58Z |
DOC: update the DataFrame.applymap docstring | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index a66d00fff9714..16575815a91d2 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -5005,39 +5005,52 @@ def apply(self, func, axis=0, broadcast=None, raw=False, reduce=None,
def applymap(self, func):
"""
- Apply a function t... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20136 | 2018-03-10T13:49:17Z | 2018-03-16T21:33:16Z | 2018-03-16T21:33:16Z | 2018-03-16T21:33:16Z |
DOC: improved the docstring of pandas.Series.clip_upper improved | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 56c71c6c19670..605db412e5a5f 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6547,25 +6547,63 @@ def clip(self, lower=None, upper=None, axis=None, inplace=False,
def clip_upper(self, threshold, axis=None, inplace=False):
... | (pandas_dev) C:\Users\Jaime\repos\MadrisSprintPandas\pandas\scripts>python validate_docstrings.py pandas.Series.clip_upper
################################################################################
##################### Docstring (pandas.Series.clip_upper) #####################
##############################... | https://api.github.com/repos/pandas-dev/pandas/pulls/20135 | 2018-03-10T13:46:47Z | 2018-07-08T14:48:25Z | 2018-07-08T14:48:25Z | 2018-07-08T14:48:29Z |
DOC: update the pandas.core.generic.NDFrame.to_clipboard docstring | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index a893b2ba1a189..cfb3e2fe85439 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -1929,26 +1929,58 @@ def to_pickle(self, path, compression='infer',
protocol=protocol)
def to_clipboard(self, excel=True, s... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [X] The validation script passes: `scripts/validate_docstrings.py pandas.core.generic.NDFrame.to_clipboard`
- [X] The PEP8 style check passes: `gi... | https://api.github.com/repos/pandas-dev/pandas/pulls/20134 | 2018-03-10T13:45:57Z | 2018-03-13T20:49:32Z | 2018-03-13T20:49:31Z | 2018-03-13T20:49:32Z |
DOC: update the pandas.DataFrame.plot.pie docstring | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index cf3ae3c0368d3..da7c58428fb54 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -3133,19 +3133,51 @@ def area(self, x=None, y=None, **kwds):
def pie(self, y=None, **kwds):
"""
- Pie chart
+ Generate... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py pandas.DataFrame.plot.pie`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20133 | 2018-03-10T13:45:18Z | 2018-03-17T09:44:36Z | 2018-03-17T09:44:36Z | 2019-03-12T10:30:36Z |
DOC: update the docstrings of Interval and IntervalMixin | diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx
index f969c5db5b902..5dbf509fda65e 100644
--- a/pandas/_libs/interval.pyx
+++ b/pandas/_libs/interval.pyx
@@ -20,28 +20,60 @@ cdef class IntervalMixin(object):
@property
def closed_left(self):
"""
- Return True if the Interval ... | Improved the docstrings of Interval (the class) and the following methods
of IntervalMixin:
* closed_right
* closed_left
* open_right
* open_left
Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstri... | https://api.github.com/repos/pandas-dev/pandas/pulls/20132 | 2018-03-10T13:44:49Z | 2018-03-14T14:21:26Z | 2018-03-14T14:21:26Z | 2018-03-14T14:41:20Z |
DOC: update pandas.DatetimeIndex.to_period docstring(Nairobi) | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index e5e9bba269fd4..8b16391a8e8cd 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -1057,7 +1057,47 @@ def to_pydatetime(self):
def to_period(self, freq=None):
"""
- Cast to Pe... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [ x] PR title is "DOC: update the pandas.DatetimeIndex.to_period docstring"
- [ x] The validation script passes: `scripts/validate_docstrings.py pandas.DatetimeIndex.to_period `
- [ x] The PEP8 style check passes: `git... | https://api.github.com/repos/pandas-dev/pandas/pulls/20131 | 2018-03-10T13:44:23Z | 2018-03-12T16:18:49Z | 2018-03-12T16:18:49Z | 2018-03-12T16:18:50Z |
DOC: Docstring for pandas.index.max | diff --git a/pandas/core/base.py b/pandas/core/base.py
index fd039480fc6f1..9b50687edecd8 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -787,7 +787,36 @@ def empty(self):
return not self.size
def max(self):
- """ The maximum value of the object """
+ """
+ Return the... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [X] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20130 | 2018-03-10T13:38:00Z | 2018-03-16T21:12:46Z | 2018-03-16T21:12:46Z | 2018-03-17T18:12:03Z |
DOC: update the parquet docstring | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index a66d00fff9714..8151d6ca3b193 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1697,10 +1697,15 @@ def to_parquet(self, fname, engine='auto', compression='snappy',
.. versionadded:: 0.21.0
+ This function writes the datafr... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20129 | 2018-03-10T13:36:43Z | 2018-03-12T11:03:35Z | 2018-03-12T11:03:35Z | 2018-03-12T11:04:02Z |
DOC: updated the examples in date_range function of Pandas | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index b9c4b59536d0c..3fc9478ed457d 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -2206,36 +2206,34 @@ def date_range(start=None, end=None, periods=None, freq='D', tz=None,
"""
Return a fi... | I have updated some little typos of full stop that I came across while validating and added some examples for `date_range` function in pandas/core/indexes/datetimes.py . Please review this and let me know if I can make it better.
thanks | https://api.github.com/repos/pandas-dev/pandas/pulls/20128 | 2018-03-10T13:29:00Z | 2018-03-16T21:06:57Z | 2018-03-16T21:06:57Z | 2018-03-16T21:06:57Z |
DOC: update the pandas.DataFrame.to_sql docstring | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index a893b2ba1a189..fcc551b3ac2e4 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -1865,33 +1865,108 @@ def to_sql(self, name, con, schema=None, if_exists='fail', index=True,
"""
Write records stored in a DataFrame to a ... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20126 | 2018-03-10T13:26:04Z | 2018-03-13T20:27:31Z | 2018-03-13T20:27:31Z | 2018-03-13T20:27:36Z |
DOC: Improved the docstring of pandas.Series.truncate | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index a893b2ba1a189..c056d160e91bf 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6888,29 +6888,37 @@ def tshift(self, periods=1, freq=None, axis=0):
def truncate(self, before=None, after=None, axis=None, copy=True):
"""
... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20125 | 2018-03-10T13:24:58Z | 2018-03-15T21:57:25Z | 2018-03-15T21:57:25Z | 2018-03-15T21:57:40Z |
DOC: update the MultiIndex docstring | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 8b6d945854960..c583ab8c225bc 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1086,7 +1086,6 @@ def format(self, space=2, sparsify=None, adjoin=True, names=False,
na = na_rep if na_rep is not None... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [ ] PR title is "DOC: update the <your-function-or-method> docstring"
- [ ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [ ] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20124 | 2018-03-10T13:12:06Z | 2018-03-15T21:11:57Z | null | 2018-03-15T21:11:57Z |
DOC: Update the pandas.Index.isna docstring | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index fd1d3690e8a89..f387afde24117 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -2022,18 +2022,58 @@ def hasnans(self):
def isna(self):
"""
- Detect missing values
+ Detect missing value... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20123 | 2018-03-10T13:04:38Z | 2018-03-12T21:17:18Z | 2018-03-12T21:17:17Z | 2018-03-14T10:54:12Z |
DOC: improved the docstring of pandas.Series.clip_lower | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index a893b2ba1a189..59ec9d7340d5b 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5644,7 +5644,8 @@ def clip_upper(self, threshold, axis=None, inplace=False):
Align object with threshold along the given axis.
inplac... | ```
(pandas_dev) david@david-TM1604:~/repos/pandas/scripts$ python validate_docstrings.py pandas.Series.clip_lower
################################################################################
##################### Docstring (pandas.Series.clip_lower) #####################
#####################################... | https://api.github.com/repos/pandas-dev/pandas/pulls/20122 | 2018-03-10T12:56:14Z | 2018-03-16T21:03:01Z | 2018-03-16T21:03:01Z | 2018-03-16T21:03:07Z |
DOC: updated the pandas.DataFrame.plot.hexbin docstring | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index c5b22effc6486..0e28b1cbd1cad 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -3174,26 +3174,85 @@ def scatter(self, x, y, s=None, c=None, **kwds):
def hexbin(self, x, y, C=None, reduce_C_function=None, gridsize=None,
... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20121 | 2018-03-10T12:50:44Z | 2018-03-14T12:40:48Z | 2018-03-14T12:40:48Z | 2018-03-14T14:17:01Z |
DOC: update and seperate the Series.drop and Dataframe.drop docstring | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index a66d00fff9714..8e25432ecef26 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3035,6 +3035,129 @@ def reindex_axis(self, labels, axis=0, method=None, level=None, copy=True,
method=method, level=level,... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [X] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20120 | 2018-03-10T12:48:40Z | 2018-03-13T16:05:54Z | 2018-03-13T16:05:54Z | 2018-03-13T17:49:55Z |
DOC: removed extra comma from date_range function docstring | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index 491fefe8efee0..212bf161497a6 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -2210,27 +2210,27 @@ def date_range(start=None, end=None, periods=None, freq='D', tz=None,
Parameters
----... | In the doc-string written in function date_range in file pandas/core/indexes/datetimes.py. I have found a little typo at https://github.com/pandas-dev/pandas/blob/master/pandas/core/indexes/datetimes.py#L2233. Please have a look at the pull request and suggest any edits if required. | https://api.github.com/repos/pandas-dev/pandas/pulls/20119 | 2018-03-10T12:48:28Z | 2018-03-11T15:48:31Z | null | 2023-05-11T01:17:32Z |
DOC: improved the scatter method | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index c5b22effc6486..ab4b223654d31 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -3151,23 +3151,82 @@ def pie(self, y=None, **kwds):
def scatter(self, x, y, s=None, c=None, **kwds):
"""
- Scatter plot
+ ... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20118 | 2018-03-10T12:47:44Z | 2018-03-14T12:57:47Z | 2018-03-14T12:57:47Z | 2018-03-14T12:57:47Z |
DOC: update the pandas.Index.duplicated and pandas.Series.duplicated docstring | diff --git a/pandas/core/base.py b/pandas/core/base.py
index fd039480fc6f1..257b26b64e642 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -1197,24 +1197,6 @@ def drop_duplicates(self, keep='first', inplace=False):
else:
return result
- _shared_docs['duplicated'] = (
- """... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [ ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20117 | 2018-03-10T12:42:20Z | 2018-03-14T15:01:26Z | 2018-03-14T15:01:26Z | 2020-01-13T11:22:21Z |
DOC: update the pandas.Series.dropna docstring by Ankara Chapter | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 069f0372ab6e1..10ed4345670b1 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -2970,13 +2970,49 @@ def notnull(self):
def dropna(self, axis=0, inplace=False, **kwargs):
"""
- Return Series without null values
+ ... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [ x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [ x] The PEP8 style check passes: `git diff upstr... | https://api.github.com/repos/pandas-dev/pandas/pulls/20116 | 2018-03-10T12:39:13Z | 2018-03-16T20:48:40Z | null | 2018-03-16T20:48:41Z |
DOC: update the read_sas docstring | diff --git a/pandas/io/sas/sasreader.py b/pandas/io/sas/sasreader.py
index b8a0bf5733158..c2d92f1eb1f42 100644
--- a/pandas/io/sas/sasreader.py
+++ b/pandas/io/sas/sasreader.py
@@ -4,7 +4,6 @@
from pandas import compat
from pandas.io.common import _stringify_path
-
def read_sas(filepath_or_buffer, format=None, ind... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [ ] PR title is "DOC: update the <your-function-or-method> docstring"
- [ ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [ ] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20115 | 2018-03-10T12:33:51Z | 2018-03-10T12:37:19Z | null | 2018-03-10T12:37:19Z |
DOC: update the pandas.Index.drop_duplicates and pandas.Series.drop_duplicates docstring | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 280b8849792e3..fd039480fc6f1 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -1184,24 +1184,6 @@ def searchsorted(self, value, side='left', sorter=None):
# needs coercion on the key (DatetimeIndex does already)
return self.valu... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [ ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20114 | 2018-03-10T12:22:45Z | 2018-03-10T15:41:59Z | 2018-03-10T15:41:59Z | 2018-03-10T15:42:54Z |
DOC: update the pandas.DataFrame.hist docstring | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index 98fdcf8f94ae0..4fad350ed2761 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -2128,50 +2128,81 @@ def hist_frame(data, column=None, by=None, grid=True, xlabelsize=None,
xrot=None, ylabelsize=None, yrot=None, a... | - [x] PR title is "DOC: update the pandas.DataFrame.hist docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py pandas.DataFrame.hist`
- [x] The PEP8 style check passes: `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] The html version looks good: `python doc/make.py --single pan... | https://api.github.com/repos/pandas-dev/pandas/pulls/20113 | 2018-03-10T11:57:44Z | 2018-03-13T20:41:07Z | 2018-03-13T20:41:07Z | 2018-03-13T20:41:08Z |
DOC: update validate_docstrings.py Validation script checks for tabs | diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py
index 8425882f07be1..a7e121f9069fc 100755
--- a/scripts/validate_docstrings.py
+++ b/scripts/validate_docstrings.py
@@ -455,6 +455,12 @@ def validate_one(func_name):
if not rel_desc:
errs.append('Missing descripti... | Add a check to validate the docstrings don't have tabs.
The documentation uses whitespace only, adding the check will prevent
tabs being added in the sprint or future submissions
Sample output (elided non changed parts)
```
...
################################################################################
... | https://api.github.com/repos/pandas-dev/pandas/pulls/20112 | 2018-03-10T11:55:59Z | 2018-03-14T22:42:15Z | 2018-03-14T22:42:15Z | 2018-03-15T00:06:42Z |
DOC: Apply doc sprint | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index a66d00fff9714..c81bb21639085 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4818,7 +4818,8 @@ def aggregate(self, func, axis=0, *args, **kwargs):
def apply(self, func, axis=0, broadcast=None, raw=False, reduce=None,
r... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20111 | 2018-03-10T11:52:21Z | 2018-03-13T16:18:40Z | null | 2023-05-11T01:17:32Z |
DOC: Improved the docstring of pandas.Series.sample | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index a893b2ba1a189..9186cb33e5b7a 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3718,7 +3718,9 @@ def tail(self, n=5):
def sample(self, n=None, frac=None, replace=False, weights=None,
random_state=None, axis=None):... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20109 | 2018-03-10T11:49:35Z | 2018-03-15T14:11:33Z | 2018-03-15T14:11:33Z | 2018-03-15T14:12:19Z |
DOC: update the MultiIndex.sortlevel docstring | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 73f4aee1c4880..50294fbfb81ae 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1847,18 +1847,23 @@ def cats(label):
def sortlevel(self, level=0, ascending=True, sort_remaining=True):
"""
- ... | - [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [ ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [ ] The PEP8 style check passes: `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] The html version looks good: `python doc/make.py --si... | https://api.github.com/repos/pandas-dev/pandas/pulls/20108 | 2018-03-10T11:33:13Z | 2018-04-17T18:04:03Z | null | 2018-04-17T18:04:03Z |
DOC: update the Series.reset_index DocString | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 069f0372ab6e1..acc96487adb40 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -1002,55 +1002,112 @@ def _set_value(self, label, value, takeable=False):
def reset_index(self, level=None, drop=False, name=None, inplace=False):
... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20107 | 2018-03-10T11:11:47Z | 2018-03-15T22:03:08Z | 2018-03-15T22:03:08Z | 2018-03-15T22:03:27Z |
DOC: update the pickle.py docstring | diff --git a/pandas/io/pickle.py b/pandas/io/pickle.py
index 756096dd0c9ce..51c36520555a4 100644
--- a/pandas/io/pickle.py
+++ b/pandas/io/pickle.py
@@ -29,8 +29,8 @@ def to_pickle(obj, path, compression='infer', protocol=pkl.HIGHEST_PROTOCOL):
For Python >= 3.4, 4 is a valid value. A negative value for the
... | Update
Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git dif... | https://api.github.com/repos/pandas-dev/pandas/pulls/20106 | 2018-03-10T10:41:20Z | 2018-03-12T21:35:11Z | null | 2023-05-11T01:17:32Z |
DOC: update the MultiIndex.swaplevel docstring | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 73f4aee1c4880..7cd7e8dd274df 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1775,22 +1775,45 @@ def droplevel(self, level=0):
def swaplevel(self, i=-2, j=-1):
"""
- Swap level i with l... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [X] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20105 | 2018-03-10T10:22:46Z | 2018-03-10T14:49:31Z | 2018-03-10T14:49:31Z | 2018-03-10T14:49:41Z |
DOC: Update pandas.cut docstring | diff --git a/pandas/core/reshape/tile.py b/pandas/core/reshape/tile.py
index 30132ddc05c40..be28f7091712f 100644
--- a/pandas/core/reshape/tile.py
+++ b/pandas/core/reshape/tile.py
@@ -26,69 +26,133 @@
def cut(x, bins, right=True, labels=None, retbins=False, precision=3,
include_lowest=False):
"""
- R... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X ] PR title is "DOC: update the <your-function-or-method> docstring"
- [X ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X ] The PEP8 style check passes: `git diff upstr... | https://api.github.com/repos/pandas-dev/pandas/pulls/20104 | 2018-03-10T10:08:23Z | 2018-03-16T11:10:27Z | 2018-03-16T11:10:26Z | 2018-06-09T11:34:27Z |
Doc: Update the DatetimeIndex.strftime docstring | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index e673bfe411cb4..dae5324da41be 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -61,6 +61,8 @@ def strftime(self, date_format):
return np.asarray(self.format(date_format=date_... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [ ] PR title is "DOC: update the <your-function-or-method> docstring"
- [ ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [ ] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20103 | 2018-03-10T09:30:58Z | 2018-03-13T23:19:24Z | 2018-03-13T23:19:24Z | 2018-03-13T23:19:29Z |
DOC: update the pd.DataFrame.memory_usage/empty docstring(Seoul) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index a66d00fff9714..af3d5a0f93cce 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1943,32 +1943,88 @@ def _sizeof_fmt(num, size_qualifier):
_put_lines(buf, lines)
def memory_usage(self, index=True, deep=False):
- """Memory... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [X] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20102 | 2018-03-10T08:54:45Z | 2018-03-15T21:58:34Z | 2018-03-15T21:58:34Z | 2018-03-15T21:58:49Z |
DOC: update the axes, shape, dim and size property docstring (Seoul) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index a66d00fff9714..4b3db21dc87c0 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -550,8 +550,17 @@ def _get_axes(N, K, index=index, columns=columns):
@property
def axes(self):
"""
- Return a list with the row axis label... | This change includes the following property axes, shape, ndim, size
Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [X] The validation script passes: `scripts/validate_docstrings.py <your-func... | https://api.github.com/repos/pandas-dev/pandas/pulls/20101 | 2018-03-10T08:33:35Z | 2018-03-13T15:05:49Z | 2018-03-13T15:05:49Z | 2018-03-15T22:27:02Z |
DOC: update the dtypes/ftypes docstring (Seoul) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index a893b2ba1a189..8fedaabca84a8 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -4275,7 +4275,36 @@ def get_ftype_counts(self):
@property
def dtypes(self):
- """Return the dtypes in this object."""
+ """
+ ... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [X] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20100 | 2018-03-10T08:32:45Z | 2018-03-12T21:11:07Z | 2018-03-12T21:11:07Z | 2018-03-12T21:11:07Z |
DOC: update the docstring for several functions and properties (Seoul). | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index a66d00fff9714..7092887975727 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -2432,8 +2432,8 @@ def eval(self, expr, inplace=False, **kwargs):
return _eval(expr, inplace=inplace, **kwargs)
def select_dtypes(self, include=None... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20099 | 2018-03-10T08:31:36Z | 2018-03-13T14:44:44Z | 2018-03-13T14:44:44Z | 2018-03-13T14:44:49Z |
DOC: update the GroupBy.apply docstring | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index cb045b08f3629..4b0143b3e1ced 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -55,28 +55,28 @@ class providing the base-class of operations.
_apply_docs = dict(
template="""
- Apply function ... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [X] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20098 | 2018-03-10T08:15:27Z | 2018-07-21T17:00:32Z | 2018-07-21T17:00:31Z | 2018-07-21T17:00:43Z |
DOC: update the DatetimeIndex.tz_convert(tz) docstring | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index 1109fc4effe4a..1dca7bc47c274 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -1946,15 +1946,14 @@ def delete(self, loc):
def tz_convert(self, tz):
"""
- Convert tz-aware ... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20096 | 2018-03-10T06:02:55Z | 2018-03-13T12:45:20Z | 2018-03-13T12:45:20Z | 2018-03-13T12:45:31Z |
Create new file with .csv extension | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index a66d00fff9714..0a7393df673bb 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1560,6 +1560,9 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
"""
+ if ".csv" not in path_or_buf:
+ pa... | If the .csv extension is not especified, the to_csv inserts.
```
df = pandas.read_csv("file.csv")
df.to_csv("new_file")
```
File created = new_file.csv | https://api.github.com/repos/pandas-dev/pandas/pulls/20095 | 2018-03-10T05:20:31Z | 2018-03-10T11:33:53Z | null | 2023-05-11T01:17:32Z |
DOC: Update the DatetimeIndex.normalize docstring | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index 1f387dadfb9ae..93f6be9365283 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -1964,11 +1964,41 @@ def date(self):
def normalize(self):
"""
- Return DatetimeIndex with tim... | Signed-off-by: Tushar Mittal <chiragmittal.mittal@gmail.com>
Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or... | https://api.github.com/repos/pandas-dev/pandas/pulls/20094 | 2018-03-10T04:34:11Z | 2018-03-15T14:28:12Z | 2018-03-15T14:28:12Z | 2018-03-15T14:28:13Z |
DOC:update the DatetimeIndex.tz_convert(tz) | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index e5e9bba269fd4..6f7a291b2c31b 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -1904,8 +1904,12 @@ def delete(self, loc):
def tz_convert(self, tz):
"""
- Convert tz-aware D... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [ ] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20093 | 2018-03-10T03:31:24Z | 2018-03-10T05:28:14Z | null | 2018-03-10T05:28:42Z |
FIX: add support for desc order when ranking infs with nans #19538 | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index e83f149db1f18..2a08ca847b39d 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -1022,6 +1022,7 @@ Numeric
- Bug in :class:`Index` constructor with ``dtype='uint64'`` where int-like floats were not c... | Please include the output of the validation script below between the "```" ticks:
```
################################################################################
################ Docstring (pandas._libs.algos.rank_1d_object) ################
##################################################################... | https://api.github.com/repos/pandas-dev/pandas/pulls/20091 | 2018-03-10T02:19:39Z | 2018-03-30T20:35:26Z | 2018-03-30T20:35:25Z | 2018-04-20T06:16:17Z |
Update series.py | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 069f0372ab6e1..fa71c2894fda9 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -2965,6 +2965,9 @@ def notna(self):
return super(Series, self).notna()
@Appender(generic._shared_docs['notna'] % _shared_doc_kwargs)
+ """
+ ... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [ x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstrea... | https://api.github.com/repos/pandas-dev/pandas/pulls/20087 | 2018-03-09T22:57:14Z | 2018-03-09T23:17:16Z | null | 2018-03-09T23:17:21Z |
DOC: update the Series.memory_usage() docstring | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 069f0372ab6e1..99ae07f2d006d 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -2696,28 +2696,54 @@ def reindex_axis(self, labels, axis=0, **kwargs):
return self.reindex(index=labels, **kwargs)
def memory_usage(self, index=... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [ ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20086 | 2018-03-09T21:40:59Z | 2018-03-10T16:32:21Z | 2018-03-10T16:32:20Z | 2018-03-11T14:29:35Z |
DOC: update the pandas.core.resample.Resampler.backfill docstring | diff --git a/pandas/core/resample.py b/pandas/core/resample.py
index 772568ee84737..4f9c22ca98f1a 100644
--- a/pandas/core/resample.py
+++ b/pandas/core/resample.py
@@ -519,21 +519,104 @@ def nearest(self, limit=None):
def backfill(self, limit=None):
"""
- Backward fill the values
+ Backwa... | Checklist for the pandas documentation sprint:
- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py pandas.core.resample.Resampler.backfill`
- [x] The PEP8 style check passes: `git diff upstream/master -u -- "*.py" | flake8 --di... | https://api.github.com/repos/pandas-dev/pandas/pulls/20083 | 2018-03-09T18:52:29Z | 2018-03-12T12:04:41Z | 2018-03-12T12:04:41Z | 2018-03-12T15:05:07Z |
add test cases for GroupBy.apply trivial cases | diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py
index 0561b3a1d8592..6756d25ad1707 100644
--- a/pandas/tests/groupby/test_groupby.py
+++ b/pandas/tests/groupby/test_groupby.py
@@ -233,6 +233,36 @@ def test_apply_issues(self):
lambda x: x['time'][x['value'].idxmax()]... | - [x] regarding #20066
- 2 tests added, one should pass, one expected to fail.
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/20081 | 2018-03-09T16:31:43Z | 2018-03-13T23:21:02Z | 2018-03-13T23:21:02Z | 2018-03-13T23:21:20Z |
DOC: Add syntax highlighting to SAS code blocks in comparison_with_sas.rst | diff --git a/doc/source/comparison_with_sas.rst b/doc/source/comparison_with_sas.rst
index 214667119f7e0..0354ad473544b 100644
--- a/doc/source/comparison_with_sas.rst
+++ b/doc/source/comparison_with_sas.rst
@@ -25,7 +25,7 @@ As is customary, we import pandas and NumPy as follows:
This is often used in interactive... | Since version 2.2, Pygments supports [SAS syntax highlighting](http://pygments.org/docs/lexers/#lexer-for-sas). This PR just changes `.. code-block:: none` to `.. code-block:: sas`.
In my local build, that causes the code chunks to look like this:
 | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index a893b2ba1a189..6e0a92a3cd93a 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -7522,7 +7522,7 @@ def _add_numeric_operations(cls):
cls.any = _make_logical_function(
cls, 'any', name, name2, axis_descr,
- ... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [x] PR title is "DOC: Improved the docstring of Series.any()"
- [ ] The validation script passes: `scripts/validate_docstrings.py Series.any()`
- [x] The PEP8 style check passes: `git diff upstream/master -u -- "*.py" ... | https://api.github.com/repos/pandas-dev/pandas/pulls/20078 | 2018-03-09T14:44:33Z | 2018-03-14T22:25:53Z | null | 2018-03-14T22:25:53Z |
DOC: fix the pandas.DataFrame.add example | diff --git a/pandas/core/ops.py b/pandas/core/ops.py
index 6c6a54993b669..037c9e31f7157 100644
--- a/pandas/core/ops.py
+++ b/pandas/core/ops.py
@@ -345,7 +345,7 @@ def _get_op_name(op, special):
_add_example_FRAME = """
>>> a = pd.DataFrame([1, 1, 1, np.nan], index=['a', 'b', 'c', 'd'],
- colum... | Docstring assigned to the PyData Nairobi chapter for the sprint
Checklist for the pandas documentation sprint
- [x] PR title is "DOC: update the pandas.DataFrame.rmul docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py pandas.DataFrame.rmul`
- [x] The PEP8 style check passes: `git diff... | https://api.github.com/repos/pandas-dev/pandas/pulls/20077 | 2018-03-09T14:42:12Z | 2018-03-15T13:48:21Z | 2018-03-15T13:48:21Z | 2018-03-19T21:03:01Z |
DOC: Improved the docstring of errors.ParserWarning | diff --git a/pandas/errors/__init__.py b/pandas/errors/__init__.py
index af4e83f506257..ee1a2ba777559 100644
--- a/pandas/errors/__init__.py
+++ b/pandas/errors/__init__.py
@@ -53,10 +53,42 @@ class EmptyDataError(ValueError):
class ParserWarning(Warning):
"""
- Warning that is raised in `pd.read_csv` whenev... | Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [ ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/20076 | 2018-03-09T14:17:11Z | 2018-03-15T19:29:23Z | 2018-03-15T19:29:23Z | 2018-03-15T19:29:23Z |
DOC/CLN: clean-up shared_docs in generic.py | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index b4e8b4e3a6bec..15cebb88faea7 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3629,7 +3629,8 @@ def align(self, other, join='outer', axis=None, level=None, copy=True,
fill_axis=fill_axis,
... | xref https://github.com/pandas-dev/pandas/pull/20016 | https://api.github.com/repos/pandas-dev/pandas/pulls/20074 | 2018-03-09T11:31:57Z | 2018-10-02T20:31:37Z | 2018-10-02T20:31:37Z | 2018-10-02T20:31:41Z |
DOC: update the pandas.core.groupby.GroupBy.max docstring | diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py
index 4352a001aa989..ce95966e4305b 100644
--- a/pandas/core/groupby.py
+++ b/pandas/core/groupby.py
@@ -191,6 +191,107 @@
dtype: int64
""")
+_numeric_operations_full_names = dict(
+ sum='the sum',
+ prod='the product',
+ min='the minimum'... | Added extendible dictionary to do the same for other generic numeric operations in module pandas.core.groupby.
Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):
- [X] PR title is "DOC: update the pandas.core.groupby.GroupBy.max docstring"
- [X] The validation script p... | https://api.github.com/repos/pandas-dev/pandas/pulls/20073 | 2018-03-09T11:29:33Z | 2018-11-01T01:34:39Z | null | 2018-11-01T01:34:39Z |
Docstring validation script: handle args/kwargs | diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py
index 8425882f07be1..e5768ca0aba23 100755
--- a/scripts/validate_docstrings.py
+++ b/scripts/validate_docstrings.py
@@ -175,9 +175,9 @@ def needs_summary(self):
@property
def doc_parameters(self):
- return collections.Ordere... | This ensures that if you use `**kwargs` in the docstring Parameters, the validation script does not complain.
But it does not yet check it is actually written like that.
| https://api.github.com/repos/pandas-dev/pandas/pulls/20072 | 2018-03-09T09:27:41Z | 2018-03-14T14:42:12Z | null | 2023-05-11T01:17:31Z |
DOC: Fixed example & description for pandas.cut | diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 4e1e9ce017408..c1e02bd8eafc4 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,3 +1,27 @@
+Checklist for the pandas documentation sprint (ignore this if you are doing
+an unrelated PR):
+
+- [... | - [ ] closes #xxxx
- [ ] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
```
################################################################################
############################ Docstring (pandas.cut) ############################
#########... | https://api.github.com/repos/pandas-dev/pandas/pulls/20069 | 2018-03-09T06:06:34Z | 2018-03-10T09:53:07Z | null | 2018-06-09T11:34:17Z |
Don't raise exceptions splitting a blank string | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 791365295c268..cb06d4e197859 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -839,6 +839,7 @@ Categorical
``self`` but in a different order (:issue:`19551`)
- Bug in :meth:`Index.astype` with a... | whatsnew: bug fix on reshaping
- [X] closes #20002
- [x] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/20067 | 2018-03-09T03:15:03Z | 2018-03-17T19:42:53Z | 2018-03-17T19:42:53Z | 2018-03-17T19:42:59Z |
DOC: Improved the docstring of pandas.DataFrame.values | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index a893b2ba1a189..9f2112729a503 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -4232,7 +4232,55 @@ def as_matrix(self, columns=None):
@property
def values(self):
- """Numpy representation of NDFrame
+ """
+ ... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
```
################################################################################
############ Docstring (pandas.pandas.core.generic.NDFrame.values) ############
#########... | https://api.github.com/repos/pandas-dev/pandas/pulls/20065 | 2018-03-09T01:03:14Z | 2018-03-10T14:41:17Z | 2018-03-10T14:41:17Z | 2018-03-10T17:17:28Z |
Docstring for pd.core.window.Expanding.kurt | diff --git a/pandas/core/window.py b/pandas/core/window.py
index c41b07759d555..5294cdfd5662d 100644
--- a/pandas/core/window.py
+++ b/pandas/core/window.py
@@ -926,28 +926,7 @@ def skew(self, **kwargs):
Notes
-----
- A minimum of 4 periods is required for the rolling calculation.
-
- Examples
- --... | - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Notice that I made two small changes to the ``Rolling.kurt``(by @WillAyd ) docstring too.
Namely:
- since window methods have ``kurt`` but not ``kurtosis`` (while e.g. ``Series`` has both), I guess it is best to tell users that ``kurt`` is the ... | https://api.github.com/repos/pandas-dev/pandas/pulls/20064 | 2018-03-09T01:01:56Z | 2018-03-11T12:07:02Z | 2018-03-11T12:07:02Z | 2018-03-11T12:07:02Z |
Added flake8 to DEV requirements | diff --git a/ci/environment-dev.yaml b/ci/environment-dev.yaml
index c72abd0c19516..1337fc54e9aac 100644
--- a/ci/environment-dev.yaml
+++ b/ci/environment-dev.yaml
@@ -5,6 +5,7 @@ channels:
dependencies:
- Cython
- NumPy
+ - flake8
- moto
- pytest>=3.1
- python-dateutil>=2.5.0
diff --git a/ci/requirem... | In advanced of the doc sprint this Saturday it looks like some users were confused by `git diff upstream/master -u -- "*.py" | flake8 --diff` failing even though they though they installed all development dependencies. Updating the .yml file to include this
| https://api.github.com/repos/pandas-dev/pandas/pulls/20063 | 2018-03-08T23:28:33Z | 2018-03-09T00:36:24Z | 2018-03-09T00:36:24Z | 2018-03-09T00:37:02Z |
BUG: Index.difference of itself doesn't preserve type | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index c08e22af295f4..b42aaac3cef96 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -939,6 +939,7 @@ Indexing
- Bug in :class:`IntervalIndex` where set operations that returned an empty ``IntervalIndex``... | - [x] closes #20040
- [x] tests added / passed
- tests/indexes/test_base.py:test_difference_type
- tests/indexes/test_base.py:test_intersection_difference
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Uses `Index._shallow_copy([])`, which means fixes are related... | https://api.github.com/repos/pandas-dev/pandas/pulls/20062 | 2018-03-08T21:52:36Z | 2018-03-16T22:05:18Z | 2018-03-16T22:05:18Z | 2018-03-16T22:10:05Z |
Add tests for docstring Validation Script + py27 compat | diff --git a/pandas/tests/scripts/__init__.py b/pandas/tests/scripts/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/scripts/test_validate_docstrings.py b/pandas/tests/scripts/test_validate_docstrings.py
new file mode 100644
index 0000000000000..1d35d5d30bba3
--- /dev/null
... | - [x] closes #xxxx
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
@jorisvandenbossche @toobaz a few edits here should make it work for both Py3 and Py2 users | https://api.github.com/repos/pandas-dev/pandas/pulls/20061 | 2018-03-08T21:07:04Z | 2018-08-17T19:37:33Z | 2018-08-17T19:37:33Z | 2018-11-05T19:21:25Z |
TST: series/indexing tests parameterization + moving test methods | diff --git a/pandas/tests/series/indexing/test_alter_index.py b/pandas/tests/series/indexing/test_alter_index.py
index 2629cfde9b4af..c1b6d0a452232 100644
--- a/pandas/tests/series/indexing/test_alter_index.py
+++ b/pandas/tests/series/indexing/test_alter_index.py
@@ -21,88 +21,72 @@
JOIN_TYPES = ['inner', 'outer', 'l... | Parts 2 and 3 of #20014.
- tests parameterization
- moving some tests from test_indexing.py to other files
- test methods reordering in test_indexing.py
- [x] closes #20014
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/20059 | 2018-03-08T20:10:05Z | 2018-03-10T01:40:11Z | 2018-03-10T01:40:11Z | 2018-03-10T09:55:31Z |
Small typo in apply.py | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 9056f78ee02ed..8fb74e2e87174 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -191,7 +191,7 @@ def apply_broadcast(self, target):
for i, col in enumerate(target.columns):
res = self.f(target[col])
- ares = n... | `np. asarray(res)` --> `np.asarray(res)` | https://api.github.com/repos/pandas-dev/pandas/pulls/20058 | 2018-03-08T16:15:03Z | 2018-03-09T11:30:22Z | 2018-03-09T11:30:22Z | 2018-03-09T18:04:23Z |
DOC: Updating pandas.Interval docstring | diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx
index c0b2ca66e30a6..f969c5db5b902 100644
--- a/pandas/_libs/interval.pyx
+++ b/pandas/_libs/interval.pyx
@@ -81,33 +81,79 @@ cdef class Interval(IntervalMixin):
Parameters
----------
- left : value
- Left bound for the interval
- ... | Docstring assigned to the Buenos Aires chapter for the sprint.
Hi, I have a few doubts about the changes.
First about the type of the parameters *left* and *right*, it's ok to refer to them as *orderable*?
In the implementation, the constructor takes any pair of objects that satisfy `left <= right` and the compa... | https://api.github.com/repos/pandas-dev/pandas/pulls/20057 | 2018-03-08T16:09:19Z | 2018-03-14T13:11:50Z | 2018-03-14T13:11:50Z | 2018-03-14T13:12:04Z |
Temporary github PR template for sprint | diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 4e1e9ce017408..c1e02bd8eafc4 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,3 +1,27 @@
+Checklist for the pandas documentation sprint (ignore this if you are doing
+an unrelated PR):
+
+- [... | @datapythonista do you think this would be useful to repeat it once more here? | https://api.github.com/repos/pandas-dev/pandas/pulls/20055 | 2018-03-08T13:21:36Z | 2018-03-09T09:03:45Z | 2018-03-09T09:03:45Z | 2018-03-09T09:03:48Z |
TST: xfail test_time on py2 & mpl 1.4.3 | diff --git a/pandas/tests/plotting/test_datetimelike.py b/pandas/tests/plotting/test_datetimelike.py
index 3b70b3608a0bd..2f2931c9c86ac 100644
--- a/pandas/tests/plotting/test_datetimelike.py
+++ b/pandas/tests/plotting/test_datetimelike.py
@@ -1041,7 +1041,7 @@ def test_irreg_dtypes(self):
_, ax = self.plt.su... | https://api.github.com/repos/pandas-dev/pandas/pulls/20053 | 2018-03-08T11:27:19Z | 2018-03-08T12:08:58Z | 2018-03-08T12:08:58Z | 2018-03-08T12:08:58Z | |
CLN: Preliminary formatter refactor | - [x] based on discussion here: https://github.com/pandas-dev/pandas/pull/20032#pullrequestreview-101917292
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This PR splits the various formatters into different files so that it's easier to refacto... | https://api.github.com/repos/pandas-dev/pandas/pulls/20051 | 2018-03-08T10:27:19Z | 2018-03-14T08:32:10Z | 2018-03-14T08:32:30Z | 2018-03-14T08:32:30Z | |
DOC: Updated docstring DatetimeIndex.tz_localize | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index 6b97ee90cd93c..344ec9f3a89de 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -1937,16 +1937,21 @@ def tz_convert(self, tz):
mapping={True: 'infer', False: 'raise'})
d... | Kindly review this docstring DatetimeIndex.tz_localize | https://api.github.com/repos/pandas-dev/pandas/pulls/20050 | 2018-03-08T10:22:44Z | 2018-03-14T08:55:56Z | 2018-03-14T08:55:56Z | 2018-03-14T09:03:21Z |
API: PeriodIndex subtraction to return object Index of DateOffsets | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index fd34424dedc52..80709c098036b 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -68,6 +68,7 @@ Datetimelike API Changes
- For :class:`DatetimeIndex` and :class:`TimedeltaIndex` with non-``None`` ``... | Implements _sub_period_array in DatetimeIndexOpsMixin. Behavior is analogous to subtraction of Period scalar.
- [x] closes #13077
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/20049 | 2018-03-08T02:45:24Z | 2018-06-29T00:45:49Z | 2018-06-29T00:45:49Z | 2020-04-05T17:41:09Z |
Added 'displayed_only' option to 'read_html' | diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt
index 302f8043f3ba7..bea897e1b88e6 100644
--- a/doc/source/whatsnew/v0.23.0.txt
+++ b/doc/source/whatsnew/v0.23.0.txt
@@ -343,6 +343,7 @@ Other Enhancements
- :meth:`Timestamp.day_name` and :meth:`DatetimeIndex.day_name` are now available t... | - [X] closes #20027
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry | https://api.github.com/repos/pandas-dev/pandas/pulls/20047 | 2018-03-07T23:52:29Z | 2018-03-10T01:53:35Z | 2018-03-10T01:53:35Z | 2018-05-14T21:11:38Z |
ENH: Allow rename_axis to specify index and columns arguments | diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst
index 835c4cc9d4ab3..608e2c8e72ded 100644
--- a/doc/source/advanced.rst
+++ b/doc/source/advanced.rst
@@ -503,6 +503,47 @@ method, allowing you to permute the hierarchical index levels in one step:
df[:5].reorder_levels([1,0], axis=0)
+.. _advanced.... | - [x] closes #19978
- [x] tests added / passed
- `test_rename_axis_mapper` for `DataFrame` and `Series`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/20046 | 2018-03-07T23:21:13Z | 2018-10-29T18:53:18Z | 2018-10-29T18:53:17Z | 2018-11-02T13:24:52Z |
DOC/CI: temp pin matplotlib for doc build | diff --git a/ci/requirements-3.6_DOC.run b/ci/requirements-3.6_DOC.run
index 084f38ce17eb2..fa9cab32c0ac2 100644
--- a/ci/requirements-3.6_DOC.run
+++ b/ci/requirements-3.6_DOC.run
@@ -5,7 +5,7 @@ sphinx
nbconvert
nbformat
notebook
-matplotlib
+matplotlib=2.1*
seaborn
scipy
lxml
| xref https://github.com/pandas-dev/pandas/issues/20031 | https://api.github.com/repos/pandas-dev/pandas/pulls/20045 | 2018-03-07T21:55:11Z | 2018-03-08T10:14:06Z | 2018-03-08T10:14:06Z | 2018-03-08T10:14:17Z |
DOC: Update Kurt Docstr | diff --git a/pandas/core/window.py b/pandas/core/window.py
index cef012bb33e9f..c41b07759d555 100644
--- a/pandas/core/window.py
+++ b/pandas/core/window.py
@@ -906,21 +906,23 @@ def skew(self, **kwargs):
Parameters
----------
- kwargs : Under Review
+ **kwargs
+ Under Review.
Returns
... | Continuation of #19999 | https://api.github.com/repos/pandas-dev/pandas/pulls/20044 | 2018-03-07T21:49:17Z | 2018-03-09T10:37:27Z | 2018-03-09T10:37:27Z | 2018-03-10T04:58:30Z |
Refactored GroupBy ASVs | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index 3e7e5c821b14c..7777322071957 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -14,7 +14,10 @@
method_blacklist = {
'object': {'median', 'prod', 'sem', 'cumsum', 'sum', 'cummin', 'mean',
... | - [X] closes #19733
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
I ended up mixing in some cleanup as part of this change | https://api.github.com/repos/pandas-dev/pandas/pulls/20043 | 2018-03-07T20:39:32Z | 2018-03-10T02:03:51Z | 2018-03-10T02:03:51Z | 2018-05-14T21:11:40Z |
DOC: Improve pandas.Series.plot.kde docstring and kwargs rewording for whole file | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index 98fdcf8f94ae0..520c6cecce6d7 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -2532,7 +2532,8 @@ def line(self, **kwds):
Parameters
----------
`**kwds` : optional
- Keyword arguments to pa... | Initial docstring assigned to the Barcelona Chapter for the documentation sprint.
Credits to @arnau126 who also contributed to this change.
Also, rewording of `kwargs` argument explanation for the whole file, where we refer to the `pandas.Series.plot` docstring for info. | https://api.github.com/repos/pandas-dev/pandas/pulls/20041 | 2018-03-07T17:38:12Z | 2018-03-10T21:33:42Z | 2018-03-10T21:33:42Z | 2018-03-11T09:30:13Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.