@@ -1161,7 +1161,7 @@ def to_numpy(self, dtype=None, copy=False):
1161
1161
1162
1162
Returns
1163
1163
-------
1164
- array : numpy.ndarray
1164
+ numpy.ndarray
1165
1165
1166
1166
See Also
1167
1167
--------
@@ -1455,7 +1455,7 @@ def from_records(cls, data, index=None, exclude=None, columns=None,
1455
1455
1456
1456
Returns
1457
1457
-------
1458
- df : DataFrame
1458
+ DataFrame
1459
1459
"""
1460
1460
1461
1461
# Make a copy of the input columns so we can modify it
@@ -1771,7 +1771,7 @@ def from_items(cls, items, columns=None, orient='columns'):
1771
1771
1772
1772
Returns
1773
1773
-------
1774
- frame : DataFrame
1774
+ DataFrame
1775
1775
"""
1776
1776
1777
1777
warnings .warn ("from_items is deprecated. Please use "
@@ -1882,7 +1882,7 @@ def from_csv(cls, path, header=0, sep=',', index_col=0, parse_dates=True,
1882
1882
1883
1883
Returns
1884
1884
-------
1885
- y : DataFrame
1885
+ DataFrame
1886
1886
1887
1887
See Also
1888
1888
--------
@@ -1972,7 +1972,7 @@ def to_panel(self):
1972
1972
1973
1973
Returns
1974
1974
-------
1975
- panel : Panel
1975
+ Panel
1976
1976
"""
1977
1977
# only support this kind for now
1978
1978
if (not isinstance (self .index , MultiIndex ) or # pragma: no cover
@@ -2532,7 +2532,7 @@ def memory_usage(self, index=True, deep=False):
2532
2532
2533
2533
Returns
2534
2534
-------
2535
- sizes : Series
2535
+ Series
2536
2536
A Series whose index is the original column names and whose values
2537
2537
is the memory usage of each column in bytes.
2538
2538
@@ -2750,7 +2750,7 @@ def get_value(self, index, col, takeable=False):
2750
2750
2751
2751
Returns
2752
2752
-------
2753
- value : scalar value
2753
+ scalar value
2754
2754
"""
2755
2755
2756
2756
warnings .warn ("get_value is deprecated and will be removed "
@@ -2795,7 +2795,7 @@ def set_value(self, index, col, value, takeable=False):
2795
2795
2796
2796
Returns
2797
2797
-------
2798
- frame : DataFrame
2798
+ DataFrame
2799
2799
If label pair is contained, will be reference to calling DataFrame,
2800
2800
otherwise a new object.
2801
2801
"""
@@ -3231,7 +3231,7 @@ def select_dtypes(self, include=None, exclude=None):
3231
3231
3232
3232
Returns
3233
3233
-------
3234
- subset : DataFrame
3234
+ DataFrame
3235
3235
The subset of the frame including the dtypes in ``include`` and
3236
3236
excluding the dtypes in ``exclude``.
3237
3237
@@ -3596,7 +3596,7 @@ def _sanitize_column(self, key, value, broadcast=True):
3596
3596
3597
3597
Returns
3598
3598
-------
3599
- sanitized_column : numpy-array
3599
+ numpy-array
3600
3600
"""
3601
3601
3602
3602
def reindexer (value ):
@@ -3865,7 +3865,7 @@ def drop(self, labels=None, axis=0, index=None, columns=None,
3865
3865
3866
3866
Returns
3867
3867
-------
3868
- dropped : pandas.DataFrame
3868
+ pandas.DataFrame
3869
3869
3870
3870
Raises
3871
3871
------
@@ -3990,7 +3990,7 @@ def rename(self, *args, **kwargs):
3990
3990
3991
3991
Returns
3992
3992
-------
3993
- renamed : DataFrame
3993
+ DataFrame
3994
3994
3995
3995
See Also
3996
3996
--------
@@ -4639,7 +4639,7 @@ def drop_duplicates(self, subset=None, keep='first', inplace=False):
4639
4639
4640
4640
Returns
4641
4641
-------
4642
- deduplicated : DataFrame
4642
+ DataFrame
4643
4643
"""
4644
4644
if self .empty :
4645
4645
return self .copy ()
@@ -4673,7 +4673,7 @@ def duplicated(self, subset=None, keep='first'):
4673
4673
4674
4674
Returns
4675
4675
-------
4676
- duplicated : Series
4676
+ Series
4677
4677
"""
4678
4678
from pandas .core .sorting import get_group_index
4679
4679
from pandas ._libs .hashtable import duplicated_int64 , _SIZE_HINT_LIMIT
@@ -5041,7 +5041,7 @@ def swaplevel(self, i=-2, j=-1, axis=0):
5041
5041
5042
5042
Returns
5043
5043
-------
5044
- swapped : same type as caller (new object)
5044
+ same type as caller (new object)
5045
5045
5046
5046
.. versionchanged:: 0.18.1
5047
5047
@@ -5320,7 +5320,7 @@ def combine_first(self, other):
5320
5320
5321
5321
Returns
5322
5322
-------
5323
- combined : DataFrame
5323
+ DataFrame
5324
5324
5325
5325
See Also
5326
5326
--------
@@ -5681,7 +5681,7 @@ def pivot(self, index=None, columns=None, values=None):
5681
5681
5682
5682
Returns
5683
5683
-------
5684
- table : DataFrame
5684
+ DataFrame
5685
5685
5686
5686
See Also
5687
5687
--------
@@ -5967,7 +5967,7 @@ def unstack(self, level=-1, fill_value=None):
5967
5967
5968
5968
Returns
5969
5969
-------
5970
- unstacked : DataFrame or Series
5970
+ DataFrame or Series
5971
5971
5972
5972
See Also
5973
5973
--------
@@ -6133,7 +6133,7 @@ def diff(self, periods=1, axis=0):
6133
6133
6134
6134
Returns
6135
6135
-------
6136
- diffed : DataFrame
6136
+ DataFrame
6137
6137
6138
6138
See Also
6139
6139
--------
@@ -6405,7 +6405,7 @@ def apply(self, func, axis=0, broadcast=None, raw=False, reduce=None,
6405
6405
6406
6406
Returns
6407
6407
-------
6408
- applied : Series or DataFrame
6408
+ Series or DataFrame
6409
6409
6410
6410
See Also
6411
6411
--------
@@ -6598,7 +6598,7 @@ def append(self, other, ignore_index=False,
6598
6598
6599
6599
Returns
6600
6600
-------
6601
- appended : DataFrame
6601
+ DataFrame
6602
6602
6603
6603
See Also
6604
6604
--------
@@ -6908,7 +6908,7 @@ def round(self, decimals=0, *args, **kwargs):
6908
6908
6909
6909
Returns
6910
6910
-------
6911
- DataFrame :
6911
+ DataFrame
6912
6912
A DataFrame with the affected columns rounded to the specified
6913
6913
number of decimal places.
6914
6914
@@ -7021,7 +7021,7 @@ def corr(self, method='pearson', min_periods=1):
7021
7021
7022
7022
Returns
7023
7023
-------
7024
- y : DataFrame
7024
+ DataFrame
7025
7025
7026
7026
See Also
7027
7027
--------
@@ -7215,7 +7215,7 @@ def corrwith(self, other, axis=0, drop=False, method='pearson'):
7215
7215
7216
7216
Returns
7217
7217
-------
7218
- correls : Series
7218
+ Series
7219
7219
7220
7220
See Also
7221
7221
-------
@@ -7545,7 +7545,7 @@ def nunique(self, axis=0, dropna=True):
7545
7545
7546
7546
Returns
7547
7547
-------
7548
- nunique : Series
7548
+ Series
7549
7549
7550
7550
See Also
7551
7551
--------
@@ -7583,7 +7583,7 @@ def idxmin(self, axis=0, skipna=True):
7583
7583
7584
7584
Returns
7585
7585
-------
7586
- idxmin : Series
7586
+ Series
7587
7587
7588
7588
Raises
7589
7589
------
@@ -7619,7 +7619,7 @@ def idxmax(self, axis=0, skipna=True):
7619
7619
7620
7620
Returns
7621
7621
-------
7622
- idxmax : Series
7622
+ Series
7623
7623
7624
7624
Raises
7625
7625
------
@@ -7766,7 +7766,7 @@ def quantile(self, q=0.5, axis=0, numeric_only=True,
7766
7766
7767
7767
Returns
7768
7768
-------
7769
- quantiles : Series or DataFrame
7769
+ Series or DataFrame
7770
7770
7771
7771
If ``q`` is an array, a DataFrame will be returned where the
7772
7772
index is ``q``, the columns are the columns of self, and the
@@ -7848,7 +7848,7 @@ def to_timestamp(self, freq=None, how='start', axis=0, copy=True):
7848
7848
7849
7849
Returns
7850
7850
-------
7851
- df : DataFrame with DatetimeIndex
7851
+ DataFrame with DatetimeIndex
7852
7852
"""
7853
7853
new_data = self ._data
7854
7854
if copy :
@@ -7880,7 +7880,7 @@ def to_period(self, freq=None, axis=0, copy=True):
7880
7880
7881
7881
Returns
7882
7882
-------
7883
- ts : TimeSeries with PeriodIndex
7883
+ TimeSeries with PeriodIndex
7884
7884
"""
7885
7885
new_data = self ._data
7886
7886
if copy :
0 commit comments