Skip to content

Commit 4ca7957

Browse files
pandas-dev#28792 DOC: udpated reviewers comments
1 parent df28152 commit 4ca7957

File tree

8 files changed

+25
-21
lines changed

8 files changed

+25
-21
lines changed

pandas/_libs/tslibs/timedeltas.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ cdef class _Timedelta(timedelta):
10571057
See Also
10581058
--------
10591059
Timestamp.isoformat : Function is used to convert the given
1060-
Timestamp object into the ISO format.
1060+
Timestamp object into the ISO format.
10611061

10621062
Notes
10631063
-----

pandas/core/arrays/datetimes.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1259,8 +1259,10 @@ def isocalendar(self):
12591259
12601260
See Also
12611261
--------
1262-
Timestamp.isocalendar
1263-
datetime.date.isocalendar
1262+
Timestamp.isocalendar : Function return a 3-tuple containing ISO year,
1263+
week number, and weekday for the given Timestamp object.
1264+
datetime.date.isocalendar : Return a named tuple object with
1265+
three components: year, week and weekday.
12641266
12651267
Examples
12661268
--------

pandas/core/dtypes/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ExtensionDtype:
2222
See Also
2323
--------
2424
extensions.register_extension_dtype: Register an ExtensionType
25-
with pandas as class decorator.
25+
with pandas as class decorator.
2626
extensions.ExtensionArray: Abstract base class for custom 1-D array types.
2727
2828
Notes

pandas/core/groupby/groupby.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class providing the base-class of operations.
8181
--------
8282
Series.%(name)s : Apply a function %(name)s to a Series.
8383
DataFrame.%(name)s : Apply a function %(name)s
84-
to each row or column of a DataFrame.
84+
to each row or column of a DataFrame.
8585
"""
8686

8787
_apply_docs = dict(
@@ -320,11 +320,11 @@ class providing the base-class of operations.
320320
See Also
321321
--------
322322
%(klass)s.groupby.apply : Apply function func group-wise
323-
and combine the results together.
323+
and combine the results together.
324324
%(klass)s.groupby.aggregate : Aggregate using one or more
325-
operations over the specified axis.
325+
operations over the specified axis.
326326
%(klass)s.transform : Transforms the Series on each group
327-
based on the given function.
327+
based on the given function.
328328
329329
Notes
330330
-----
@@ -432,11 +432,11 @@ class providing the base-class of operations.
432432
See Also
433433
--------
434434
{klass}.groupby.apply : Apply function func group-wise
435-
and combine the results together.
435+
and combine the results together.
436436
{klass}.groupby.transform : Aggregate using one or more
437-
operations over the specified axis.
437+
operations over the specified axis.
438438
{klass}.aggregate : Transforms the Series on each group
439-
based on the given function.
439+
based on the given function.
440440
441441
Notes
442442
-----

pandas/core/indexes/accessors.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,10 @@ def isocalendar(self):
236236
237237
See Also
238238
--------
239-
Timestamp.isocalendar
240-
datetime.date.isocalendar
239+
Timestamp.isocalendar : Function return a 3-tuple containing ISO year, week number,
240+
and weekday for the given Timestamp object.
241+
datetime.date.isocalendar : Return a named tuple object with
242+
three components: year, week and weekday.
241243
242244
Examples
243245
--------
@@ -327,7 +329,7 @@ def to_pytimedelta(self) -> np.ndarray:
327329
See Also
328330
--------
329331
datetime.timedelta : A duration expressing the difference
330-
between two date, time, or datetime.
332+
between two date, time, or datetime.
331333
332334
Examples
333335
--------

pandas/core/indexes/base.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ def astype(self, dtype, copy=True):
706706
See Also
707707
--------
708708
numpy.ndarray.take: Return an array formed from the
709-
elements of a at the given indices.
709+
elements of a at the given indices.
710710
"""
711711

712712
@Appender(_index_shared_docs["take"] % _index_doc_kwargs)
@@ -3939,7 +3939,7 @@ def _values(self) -> Union[ExtensionArray, np.ndarray]:
39393939
39403940
See Also
39413941
--------
3942-
values
3942+
values : Values
39433943
"""
39443944
return self._data
39453945

@@ -4231,7 +4231,7 @@ def putmask(self, mask, value):
42314231
See Also
42324232
--------
42334233
numpy.ndarray.putmask : Changes elements of an array
4234-
based on conditional and input values.
4234+
based on conditional and input values.
42354235
"""
42364236
values = self.values.copy()
42374237
try:

pandas/core/resample.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,11 @@ def pipe(self, func, *args, **kwargs):
236236
See Also
237237
--------
238238
DataFrame.groupby.aggregate : Aggregate using callable, string, dict,
239-
or list of string/callables.
239+
or list of string/callables.
240240
DataFrame.resample.transform : Transforms the Series on each group
241-
based on the given function.
241+
based on the given function.
242242
DataFrame.aggregate: Aggregate using one or more
243-
operations over the specified axis.
243+
operations over the specified axis.
244244
"""
245245
)
246246

pandas/io/formats/style.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ def applymap(self, func: Callable, subset=None, **kwargs) -> "Styler":
830830
See Also
831831
--------
832832
Styler.where: Updates the HTML representation with a style which is
833-
selected in accordance with the return value of a function.
833+
selected in accordance with the return value of a function.
834834
"""
835835
self._todo.append(
836836
(lambda instance: getattr(instance, "_applymap"), (func, subset), kwargs)

0 commit comments

Comments
 (0)