@@ -728,7 +728,6 @@ def droplevel(self, level, axis=0):
728
728
729
729
axis : {0 or 'index', 1 or 'columns'}, default 0
730
730
731
-
732
731
Returns
733
732
-------
734
733
DataFrame.droplevel()
@@ -767,7 +766,6 @@ def droplevel(self, level, axis=0):
767
766
1 2 3 4
768
767
5 6 7 8
769
768
9 10 11 12
770
-
771
769
"""
772
770
labels = self ._get_axis (axis )
773
771
new_labels = labels .droplevel (level )
@@ -1231,7 +1229,6 @@ def rename_axis(self, mapper=None, **kwargs):
1231
1229
2 3 30
1232
1230
c 1 4 40
1233
1231
2 5 50
1234
-
1235
1232
"""
1236
1233
axes , kwargs = self ._construct_axes_from_arguments ((), kwargs )
1237
1234
copy = kwargs .pop ('copy' , True )
@@ -2072,7 +2069,6 @@ def _repr_latex_(self):
2072
2069
automatically chosen depending on the file extension):
2073
2070
2074
2071
>>> df1.to_excel('output1.xlsx', engine='xlsxwriter')
2075
-
2076
2072
"""
2077
2073
2078
2074
def to_json (self , path_or_buf = None , orient = None , date_format = None ,
@@ -2321,7 +2317,6 @@ def to_hdf(self, path_or_buf, key, **kwargs):
2321
2317
2322
2318
>>> import os
2323
2319
>>> os.remove('data.h5')
2324
-
2325
2320
"""
2326
2321
from pandas .io import pytables
2327
2322
return pytables .to_hdf (path_or_buf , key , self , ** kwargs )
@@ -3321,7 +3316,6 @@ def xs(self, key, axis=0, level=None, drop_level=True):
3321
3316
MultiIndex Slicers is a generic way to get/set values on any level or
3322
3317
levels. It is a superset of xs functionality, see
3323
3318
:ref:`MultiIndex Slicers <advanced.mi_slicers>`
3324
-
3325
3319
"""
3326
3320
axis = self ._get_axis_number (axis )
3327
3321
labels = self ._get_axis (axis )
@@ -4883,7 +4877,6 @@ def as_matrix(self, columns=None):
4883
4877
If the caller is heterogeneous and contains booleans or objects,
4884
4878
the result will be of dtype=object. See Notes.
4885
4879
4886
-
4887
4880
Notes
4888
4881
-----
4889
4882
Return is NOT a Numpy-matrix, rather, a Numpy-array.
@@ -8951,7 +8944,6 @@ def tz_localize(self, tz, axis=0, level=None, copy=True,
8951
8944
2018-10-28 02:36:00+02:00 1
8952
8945
2018-10-28 03:46:00+01:00 2
8953
8946
dtype: int64
8954
-
8955
8947
"""
8956
8948
if nonexistent not in ('raise' , 'NaT' , 'shift' ):
8957
8949
raise ValueError ("The nonexistent argument must be one of 'raise',"
@@ -9648,7 +9640,7 @@ def compound(self, axis=None, skipna=None, level=None):
9648
9640
cls , 'kurt' , name , name2 , axis_descr ,
9649
9641
"Return unbiased kurtosis over requested axis using Fisher's "
9650
9642
"definition of\n kurtosis (kurtosis of normal == 0.0). Normalized "
9651
- "by N-1\n " ,
9643
+ "by N-1" ,
9652
9644
nanops .nankurt )
9653
9645
cls .kurtosis = cls .kurt
9654
9646
cls .prod = _make_min_count_stat_function (
@@ -9696,8 +9688,7 @@ def nanptp(values, axis=0, skipna=True):
9696
9688
``numpy.ndarray`` method ``ptp``.
9697
9689
9698
9690
.. deprecated:: 0.24.0
9699
- Use numpy.ptp instead
9700
- """ ,
9691
+ Use numpy.ptp instead""" ,
9701
9692
nanptp )
9702
9693
9703
9694
@classmethod
@@ -9961,7 +9952,6 @@ def _doc_parms(cls):
9961
9952
9962
9953
9963
9954
_num_doc = """
9964
-
9965
9955
%(desc)s
9966
9956
9967
9957
Parameters
@@ -9979,12 +9969,11 @@ def _doc_parms(cls):
9979
9969
9980
9970
Returns
9981
9971
-------
9982
- %(outname)s : %(name1)s or %(name2)s (if level specified)
9972
+ %(outname)s : %(name1)s or %(name2)s (if level specified)\
9983
9973
9984
9974
%(examples)s"""
9985
9975
9986
9976
_num_ddof_doc = """
9987
-
9988
9977
%(desc)s
9989
9978
9990
9979
Parameters
0 commit comments