Skip to content

Commit 9d9e3f9

Browse files
committed
changed docstring and whatsnew
1 parent f44316c commit 9d9e3f9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

doc/source/whatsnew/v0.20.0.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Other enhancements
5050

5151
- ``pd.read_excel`` now preserves sheet order when using ``sheetname=None`` (:issue:`9930`)
5252

53-
- pd.cut and qcut now support datetime64 and timedelta64 dtypes (issue:`14714`)
53+
- ``pd.cut`` and ``pd.qcut`` now support datetime64 and timedelta64 dtypes (issue:`14714`)
5454

5555
.. _whatsnew_0200.api_breaking:
5656

pandas/tools/tile.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,11 @@ def _trim_zeros(x):
311311

312312

313313
def _coerce_to_type(x):
314-
'''
314+
"""
315315
if the passed data is of datetime/timedelta type,
316316
this method converts it to integer so that cut method can
317317
handle it
318-
'''
318+
"""
319319
dtype = None
320320
original = x
321321
if is_timedelta64_dtype(x):
@@ -329,11 +329,11 @@ def _coerce_to_type(x):
329329

330330

331331
def _preprocess_for_cut(x):
332-
'''
332+
"""
333333
handles preprocessing for cut where we convert passed
334334
input to array, strip the index information and store it
335335
seperately
336-
'''
336+
"""
337337
x_is_series = isinstance(x, Series)
338338
series_index = None
339339

@@ -349,11 +349,11 @@ def _preprocess_for_cut(x):
349349

350350

351351
def _postprocess_for_cut(fac, bins, retbins, x_is_series, series_index, name):
352-
'''
352+
"""
353353
handles post processing for the cut method where
354354
we combine the index information if the originally passed
355355
datatype was a series
356-
'''
356+
"""
357357
if x_is_series:
358358
fac = Series(fac, index=series_index, name=name)
359359

0 commit comments

Comments
 (0)