Skip to content

Commit 9da2171

Browse files
fixing
1 parent f970aa1 commit 9da2171

File tree

7 files changed

+50
-50
lines changed

7 files changed

+50
-50
lines changed

pandas/_libs/interval.pyx

+15-15
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,6 @@ cdef class Interval(IntervalMixin):
158158
Whether the interval is closed on the left-side, right-side, both or
159159
neither. See the Notes for more detailed explanation.
160160
161-
See Also
162-
--------
163-
IntervalIndex : An Index of Interval objects that are all closed on the
164-
same side.
165-
cut : Convert continuous data into discrete bins (Categorical
166-
of Interval objects).
167-
qcut : Convert continuous data into bins (Categorical of Interval objects)
168-
based on quantiles.
169-
Period : Represents a period of time.
170-
171161
Notes
172162
-----
173163
The parameters `left` and `right` must be from the same type, you must be
@@ -236,6 +226,16 @@ cdef class Interval(IntervalMixin):
236226
>>> volume_1 = pd.Interval('Ant', 'Dog', closed='both')
237227
>>> 'Bee' in volume_1
238228
True
229+
230+
See Also
231+
--------
232+
IntervalIndex : An Index of Interval objects that are all closed on the
233+
same side.
234+
cut : Convert continuous data into discrete bins (Categorical
235+
of Interval objects).
236+
qcut : Convert continuous data into bins (Categorical of Interval objects)
237+
based on quantiles.
238+
Period : Represents a period of time.
239239
"""
240240
_typ = "interval"
241241

@@ -387,11 +387,6 @@ cdef class Interval(IntervalMixin):
387387
bool
388388
``True`` if the two intervals overlap, else ``False``.
389389
390-
See Also
391-
--------
392-
IntervalArray.overlaps : The corresponding method for IntervalArray
393-
IntervalIndex.overlaps : The corresponding method for IntervalIndex
394-
395390
Examples
396391
--------
397392
>>> i1 = pd.Interval(0, 2)
@@ -414,6 +409,11 @@ cdef class Interval(IntervalMixin):
414409
>>> i6 = pd.Interval(1, 2, closed='neither')
415410
>>> i4.overlaps(i6)
416411
False
412+
413+
See Also
414+
--------
415+
IntervalArray.overlaps : The corresponding method for IntervalArray
416+
IntervalIndex.overlaps : The corresponding method for IntervalIndex
417417
"""
418418
if not isinstance(other, Interval):
419419
msg = '`other` must be an Interval, got {other}'

pandas/_libs/tslibs/timedeltas.pyx

+8-8
Original file line numberDiff line numberDiff line change
@@ -1059,10 +1059,6 @@ cdef class _Timedelta(timedelta):
10591059
-------
10601060
formatted : str
10611061
1062-
See Also
1063-
--------
1064-
Timestamp.isoformat
1065-
10661062
Notes
10671063
-----
10681064
The longest component is days, whose value may be larger than
@@ -1085,6 +1081,10 @@ cdef class _Timedelta(timedelta):
10851081
'P0DT0H0M10S'
10861082
>>> pd.Timedelta(days=500.5).isoformat()
10871083
'P500DT12H0MS'
1084+
1085+
See Also
1086+
--------
1087+
Timestamp.isoformat
10881088
"""
10891089
components = self.components
10901090
seconds = '{}.{:0>3}{:0>3}{:0>3}'.format(components.seconds,
@@ -1210,14 +1210,14 @@ class Timedelta(_Timedelta):
12101210
"""
12111211
Round the Timedelta to the specified resolution
12121212
1213-
Parameters
1214-
----------
1215-
freq : a freq string indicating the rounding resolution
1216-
12171213
Returns
12181214
-------
12191215
a new Timedelta rounded to the given resolution of `freq`
12201216
1217+
Parameters
1218+
----------
1219+
freq : a freq string indicating the rounding resolution
1220+
12211221
Raises
12221222
------
12231223
ValueError if the freq cannot be converted

pandas/_libs/tslibs/timestamps.pyx

+4-4
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,10 @@ class Timestamp(_Timestamp):
767767
"""
768768
Round the Timestamp to the specified resolution
769769
770+
Returns
771+
-------
772+
a new Timestamp rounded to the given resolution of `freq`
773+
770774
Parameters
771775
----------
772776
freq : a freq string indicating the rounding resolution
@@ -789,10 +793,6 @@ class Timestamp(_Timestamp):
789793
790794
.. versionadded:: 0.24.0
791795
792-
Returns
793-
-------
794-
a new Timestamp rounded to the given resolution of `freq`
795-
796796
Raises
797797
------
798798
ValueError if the freq cannot be converted

pandas/core/accessor.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,6 @@ def decorator(accessor):
201201
Name under which the accessor should be registered. A warning is issued
202202
if this name conflicts with a preexisting attribute.
203203
204-
See Also
205-
--------
206-
%(others)s
207-
208204
Notes
209205
-----
210206
When accessed, your accessor will be initialized with the pandas object
@@ -254,6 +250,10 @@ def plot(self):
254250
(5.0, 10.0)
255251
>>> ds.geo.plot()
256252
# plots data on a map
253+
254+
See Also
255+
--------
256+
%(others)s
257257
"""
258258

259259

pandas/core/groupby/groupby.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -976,14 +976,6 @@ class GroupBy(_GroupBy):
976976
name : string
977977
Most users should ignore this
978978
979-
Returns
980-
-------
981-
**Attributes**
982-
groups : dict
983-
{group name -> group labels}
984-
len(grouped) : int
985-
Number of groups
986-
987979
Notes
988980
-----
989981
After grouping, see aggregate, apply, and transform functions. Here are
@@ -1017,6 +1009,14 @@ class GroupBy(_GroupBy):
10171009
10181010
See the online documentation for full exposition on these topics and much
10191011
more
1012+
1013+
Returns
1014+
-------
1015+
**Attributes**
1016+
groups : dict
1017+
{group name -> group labels}
1018+
len(grouped) : int
1019+
Number of groups
10201020
"""
10211021
def _bool_agg(self, val_test, skipna):
10221022
"""

pandas/core/resample.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ class Resampler(_GroupBy):
5151
kind : str or None
5252
'period', 'timestamp' to override default index treatement
5353
54-
Returns
55-
-------
56-
a Resampler of the appropriate type
57-
5854
Notes
5955
-----
6056
After resampling, see aggregate, apply, and transform functions.
57+
58+
Returns
59+
-------
60+
a Resampler of the appropriate type
6161
"""
6262

6363
# to the groupby descriptor

pandas/core/window.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -1294,13 +1294,6 @@ def kurt(self, **kwargs):
12941294
Returned object type is determined by the caller of the %(name)s
12951295
calculation.
12961296
1297-
See Also
1298-
--------
1299-
pandas.Series.quantile : Computes value at the given quantile over all data
1300-
in Series.
1301-
pandas.DataFrame.quantile : Computes values at the given quantile over
1302-
requested axis in DataFrame.
1303-
13041297
Examples
13051298
--------
13061299
>>> s = pd.Series([1, 2, 3, 4])
@@ -1317,6 +1310,13 @@ def kurt(self, **kwargs):
13171310
2 2.5
13181311
3 3.5
13191312
dtype: float64
1313+
1314+
See Also
1315+
--------
1316+
pandas.Series.quantile : Computes value at the given quantile over all data
1317+
in Series.
1318+
pandas.DataFrame.quantile : Computes values at the given quantile over
1319+
requested axis in DataFrame.
13201320
""")
13211321

13221322
def quantile(self, quantile, interpolation='linear', **kwargs):

0 commit comments

Comments
 (0)