Skip to content

Commit e08d27e

Browse files
committed
First typo fixes
Fix broken hyperlink on resample colon spacing remove comment from printing to docstring address linting errors pep8 fixes pep8 changes
1 parent 2466ecb commit e08d27e

File tree

6 files changed

+23
-16
lines changed

6 files changed

+23
-16
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2483,7 +2483,7 @@ def assign(self, **kwargs):
24832483
Notes
24842484
-----
24852485
Since ``kwargs`` is a dictionary, the order of your
2486-
arguments may not be preserved. The make things predicatable,
2486+
arguments may not be preserved. To make things predicatable,
24872487
the columns are inserted in alphabetical order, at the end of
24882488
your DataFrame. Assigning multiple columns within the same
24892489
``assign`` is possible, but you cannot reference other columns

pandas/core/generic.py

+15-9
Original file line numberDiff line numberDiff line change
@@ -3635,14 +3635,17 @@ def replace(self, to_replace=None, value=None, inplace=False, limit=None,
36353635
require that you also specify an `order` (int),
36363636
e.g. df.interpolate(method='polynomial', order=4).
36373637
These use the actual numerical values of the index.
3638-
* 'krogh', 'piecewise_polynomial', 'spline', 'pchip' and 'akima' are all
3639-
wrappers around the scipy interpolation methods of similar
3640-
names. These use the actual numerical values of the index. See
3641-
the scipy documentation for more on their behavior
3642-
`here <http://docs.scipy.org/doc/scipy/reference/interpolate.html#univariate-interpolation>`__ # noqa
3643-
`and here <http://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html>`__ # noqa
3638+
* 'krogh', 'piecewise_polynomial', 'spline', 'pchip' and 'akima'
3639+
are all wrappers around the scipy interpolation methods of
3640+
similar names. These use the actual numerical values of the
3641+
index. For more information on their behavior, see the
3642+
`scipy documentation
3643+
<http://docs.scipy.org/doc/scipy/reference/interpolate.html#univariate-interpolation>`__
3644+
and `tutorial documentation
3645+
<http://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html>`__
36443646
* 'from_derivatives' refers to BPoly.from_derivatives which
3645-
replaces 'piecewise_polynomial' interpolation method in scipy 0.18
3647+
replaces 'piecewise_polynomial' interpolation method in
3648+
scipy 0.18
36463649
36473650
.. versionadded:: 0.18.1
36483651
@@ -3656,7 +3659,7 @@ def replace(self, to_replace=None, value=None, inplace=False, limit=None,
36563659
* 1: fill row-by-row
36573660
limit : int, default None.
36583661
Maximum number of consecutive NaNs to fill.
3659-
limit_direction : {'forward', 'backward', 'both'}, defaults to 'forward'
3662+
limit_direction : {'forward', 'backward', 'both'}, default 'forward'
36603663
If limit is specified, consecutive NaNs will be filled in this
36613664
direction.
36623665
@@ -4159,6 +4162,9 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
41594162
41604163
.. versionadded:: 0.19.0
41614164
4165+
Notes
4166+
-----
4167+
41624168
To learn more about the offset strings, please see `this link
41634169
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
41644170
@@ -4346,7 +4352,7 @@ def rank(self, axis=0, method='average', numeric_only=None,
43464352
43474353
Parameters
43484354
----------
4349-
axis: {0 or 'index', 1 or 'columns'}, default 0
4355+
axis : {0 or 'index', 1 or 'columns'}, default 0
43504356
index to direct ranking
43514357
method : {'average', 'min', 'max', 'first', 'dense'}
43524358
* average: average rank of group

pandas/core/ops.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ def wrapper(self, other):
10061006
10071007
Parameters
10081008
----------
1009-
other: Series or scalar value
1009+
other : Series or scalar value
10101010
fill_value : None or float value, default None (NaN)
10111011
Fill missing (NaN) values with this value. If both Series are
10121012
missing, the result will be missing

pandas/core/series.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2033,9 +2033,9 @@ def reorder_levels(self, order):
20332033
20342034
Parameters
20352035
----------
2036-
order: list of int representing new level order.
2036+
order : list of int representing new level order.
20372037
(reference level by number or key)
2038-
axis: where to reorder levels
2038+
axis : where to reorder levels
20392039
20402040
Returns
20412041
-------

pandas/tools/plotting.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -2893,8 +2893,9 @@ def hist_frame(data, column=None, by=None, grid=True, xlabelsize=None,
28932893
invisible
28942894
figsize : tuple
28952895
The size of the figure to create in inches by default
2896-
layout: (optional) a tuple (rows, columns) for the layout of the histograms
2897-
bins: integer, default 10
2896+
layout : tuple, optional
2897+
Tuple of (rows, columns) for the layout of the histograms
2898+
bins : integer, default 10
28982899
Number of histogram bins to be used
28992900
kwds : other plotting keyword arguments
29002901
To be passed to hist function

pandas/tseries/index.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2000,7 +2000,7 @@ def date_range(start=None, end=None, periods=None, freq='D', tz=None,
20002000
Frequency strings can have multiples, e.g. '5H'
20012001
tz : string or None
20022002
Time zone name for returning localized DatetimeIndex, for example
2003-
Asia/Hong_Kong
2003+
Asia/Hong_Kong
20042004
normalize : bool, default False
20052005
Normalize start/end dates to midnight before generating date range
20062006
name : str, default None

0 commit comments

Comments
 (0)