Skip to content

Commit 7e8c872

Browse files
committed
First typo fixes
Fix broken hyperlink on resample colon spacing remove comment from printing to docstring
1 parent 4378f82 commit 7e8c872

File tree

6 files changed

+13
-10
lines changed

6 files changed

+13
-10
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

+6-3
Original file line numberDiff line numberDiff line change
@@ -3639,8 +3639,8 @@ def replace(self, to_replace=None, value=None, inplace=False, limit=None,
36393639
wrappers around the scipy interpolation methods of similar
36403640
names. These use the actual numerical values of the index. See
36413641
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
3642+
`here <http://docs.scipy.org/doc/scipy/reference/interpolate.html#univariate-interpolation>`__
3643+
`and here <http://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html>`__
36443644
* 'from_derivatives' refers to BPoly.from_derivatives which
36453645
replaces 'piecewise_polynomial' interpolation method in scipy 0.18
36463646
@@ -4159,6 +4159,9 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
41594159
41604160
.. versionadded:: 0.19.0
41614161
4162+
Notes
4163+
-----
4164+
41624165
To learn more about the offset strings, please see `this link
41634166
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
41644167
@@ -4346,7 +4349,7 @@ def rank(self, axis=0, method='average', numeric_only=None,
43464349
43474350
Parameters
43484351
----------
4349-
axis: {0 or 'index', 1 or 'columns'}, default 0
4352+
axis : {0 or 'index', 1 or 'columns'}, default 0
43504353
index to direct ranking
43514354
method : {'average', 'min', 'max', 'first', 'dense'}
43524355
* 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

+2-2
Original file line numberDiff line numberDiff line change
@@ -2893,8 +2893,8 @@ 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 : (optional) a tuple (rows, columns) for the layout of the histograms
2897+
bins : integer, default 10
28982898
Number of histogram bins to be used
28992899
kwds : other plotting keyword arguments
29002900
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)