@@ -730,7 +730,6 @@ def droplevel(self, level, axis=0):
730
730
731
731
axis : {0 or 'index', 1 or 'columns'}, default 0
732
732
733
-
734
733
Returns
735
734
-------
736
735
DataFrame.droplevel()
@@ -769,7 +768,6 @@ def droplevel(self, level, axis=0):
769
768
1 2 3 4
770
769
5 6 7 8
771
770
9 10 11 12
772
-
773
771
"""
774
772
labels = self ._get_axis (axis )
775
773
new_labels = labels .droplevel (level )
@@ -1233,7 +1231,6 @@ def rename_axis(self, mapper=None, **kwargs):
1233
1231
2 3 30
1234
1232
c 1 4 40
1235
1233
2 5 50
1236
-
1237
1234
"""
1238
1235
axes , kwargs = self ._construct_axes_from_arguments ((), kwargs )
1239
1236
copy = kwargs .pop ('copy' , True )
@@ -2075,7 +2072,6 @@ def _repr_latex_(self):
2075
2072
automatically chosen depending on the file extension):
2076
2073
2077
2074
>>> df1.to_excel('output1.xlsx', engine='xlsxwriter')
2078
-
2079
2075
"""
2080
2076
2081
2077
def to_json (self , path_or_buf = None , orient = None , date_format = None ,
@@ -2324,7 +2320,6 @@ def to_hdf(self, path_or_buf, key, **kwargs):
2324
2320
2325
2321
>>> import os
2326
2322
>>> os.remove('data.h5')
2327
-
2328
2323
"""
2329
2324
from pandas .io import pytables
2330
2325
return pytables .to_hdf (path_or_buf , key , self , ** kwargs )
@@ -3324,7 +3319,6 @@ def xs(self, key, axis=0, level=None, drop_level=True):
3324
3319
MultiIndex Slicers is a generic way to get/set values on any level or
3325
3320
levels. It is a superset of xs functionality, see
3326
3321
:ref:`MultiIndex Slicers <advanced.mi_slicers>`
3327
-
3328
3322
"""
3329
3323
axis = self ._get_axis_number (axis )
3330
3324
labels = self ._get_axis (axis )
@@ -4886,7 +4880,6 @@ def as_matrix(self, columns=None):
4886
4880
If the caller is heterogeneous and contains booleans or objects,
4887
4881
the result will be of dtype=object. See Notes.
4888
4882
4889
-
4890
4883
Notes
4891
4884
-----
4892
4885
Return is NOT a Numpy-matrix, rather, a Numpy-array.
@@ -8954,7 +8947,6 @@ def tz_localize(self, tz, axis=0, level=None, copy=True,
8954
8947
2018-10-28 02:36:00+02:00 1
8955
8948
2018-10-28 03:46:00+01:00 2
8956
8949
dtype: int64
8957
-
8958
8950
"""
8959
8951
if nonexistent not in ('raise' , 'NaT' , 'shift' ):
8960
8952
raise ValueError ("The nonexistent argument must be one of 'raise',"
@@ -9651,7 +9643,7 @@ def compound(self, axis=None, skipna=None, level=None):
9651
9643
cls , 'kurt' , name , name2 , axis_descr ,
9652
9644
"Return unbiased kurtosis over requested axis using Fisher's "
9653
9645
"definition of\n kurtosis (kurtosis of normal == 0.0). Normalized "
9654
- "by N-1\n " ,
9646
+ "by N-1" ,
9655
9647
nanops .nankurt )
9656
9648
cls .kurtosis = cls .kurt
9657
9649
cls .prod = _make_min_count_stat_function (
@@ -9699,8 +9691,7 @@ def nanptp(values, axis=0, skipna=True):
9699
9691
``numpy.ndarray`` method ``ptp``.
9700
9692
9701
9693
.. deprecated:: 0.24.0
9702
- Use numpy.ptp instead
9703
- """ ,
9694
+ Use numpy.ptp instead""" ,
9704
9695
nanptp )
9705
9696
9706
9697
@classmethod
@@ -9983,7 +9974,6 @@ def _doc_parms(cls):
9983
9974
9984
9975
9985
9976
_num_doc = """
9986
-
9987
9977
%(desc)s
9988
9978
9989
9979
Parameters
@@ -10001,12 +9991,11 @@ def _doc_parms(cls):
10001
9991
10002
9992
Returns
10003
9993
-------
10004
- %(outname)s : %(name1)s or %(name2)s (if level specified)
9994
+ %(outname)s : %(name1)s or %(name2)s (if level specified)\
10005
9995
10006
9996
%(examples)s"""
10007
9997
10008
9998
_num_ddof_doc = """
10009
-
10010
9999
%(desc)s
10011
10000
10012
10001
Parameters
0 commit comments