Skip to content

Commit de40ebb

Browse files
committed
First typo fixes
Fix broken hyperlink on resample colon spacing remove comment from printing to docstring
1 parent 5d0e157 commit de40ebb

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
@@ -2536,7 +2536,7 @@ def assign(self, **kwargs):
25362536
Notes
25372537
-----
25382538
Since ``kwargs`` is a dictionary, the order of your
2539-
arguments may not be preserved. The make things predicatable,
2539+
arguments may not be preserved. To make things predicatable,
25402540
the columns are inserted in alphabetical order, at the end of
25412541
your DataFrame. Assigning multiple columns within the same
25422542
``assign`` is possible, but you cannot reference other columns

pandas/core/generic.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -3583,8 +3583,8 @@ def replace(self, to_replace=None, value=None, inplace=False, limit=None,
35833583
wrappers around the scipy interpolation methods of similar
35843584
names. These use the actual numerical values of the index. See
35853585
the scipy documentation for more on their behavior
3586-
`here <http://docs.scipy.org/doc/scipy/reference/interpolate.html#univariate-interpolation>`__ # noqa
3587-
`and here <http://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html>`__ # noqa
3586+
`here <http://docs.scipy.org/doc/scipy/reference/interpolate.html#univariate-interpolation>`__
3587+
`and here <http://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html>`__
35883588
* 'from_derivatives' refers to BPoly.from_derivatives which
35893589
replaces 'piecewise_polynomial' interpolation method in scipy 0.18
35903590
@@ -4103,6 +4103,9 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
41034103
41044104
.. versionadded:: 0.19.0
41054105
4106+
Notes
4107+
-----
4108+
41064109
To learn more about the offset strings, please see `this link
41074110
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
41084111
@@ -4290,7 +4293,7 @@ def rank(self, axis=0, method='average', numeric_only=None,
42904293
42914294
Parameters
42924295
----------
4293-
axis: {0 or 'index', 1 or 'columns'}, default 0
4296+
axis : {0 or 'index', 1 or 'columns'}, default 0
42944297
index to direct ranking
42954298
method : {'average', 'min', 'max', 'first', 'dense'}
42964299
* 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
@@ -2032,9 +2032,9 @@ def reorder_levels(self, order):
20322032
20332033
Parameters
20342034
----------
2035-
order: list of int representing new level order.
2035+
order : list of int representing new level order.
20362036
(reference level by number or key)
2037-
axis: where to reorder levels
2037+
axis : where to reorder levels
20382038
20392039
Returns
20402040
-------

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)