Skip to content

Pr09 batch 1 #29324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Nov 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pandas/core/computation/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def eval(
More backends may be available in the future.

truediv : bool, optional
Whether to use true division, like in Python >= 3
Whether to use true division, like in Python >= 3.
local_dict : dict or None, optional
A dictionary of local variables, taken from locals() by default.
global_dict : dict or None, optional
Expand Down
12 changes: 6 additions & 6 deletions pandas/core/indexes/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ class DatetimeIndex(DatetimeIndexOpsMixin, Int64Index, DatetimeDelegateMixin):
Parameters
----------
data : array-like (1-dimensional), optional
Optional datetime-like data to construct index with
Optional datetime-like data to construct index with.
copy : bool
Make a copy of input ndarray
Make a copy of input ndarray.
freq : str or pandas offset object, optional
One of pandas date offset strings or corresponding objects. The string
'infer' can be passed in order to set the frequency of the index as the
inferred frequency upon creation
inferred frequency upon creation.

start : starting value, datetime-like, optional
If data is None, start is used as the start point in generating regular
Expand All @@ -119,19 +119,19 @@ class DatetimeIndex(DatetimeIndexOpsMixin, Int64Index, DatetimeDelegateMixin):

periods : int, optional, > 0
Number of periods to generate, if generating index. Takes precedence
over end argument
over end argument.

.. deprecated:: 0.24.0

end : end time, datetime-like, optional
If periods is none, generated index will extend to first conforming
time on or just past end argument
time on or just past end argument.

.. deprecated:: 0.24.0

closed : str or None, default None
Make the interval closed with respect to the given frequency to
the 'left', 'right', or both sides (None)
the 'left', 'right', or both sides (None).

.. deprecated:: 0.24. 0

Expand Down
16 changes: 8 additions & 8 deletions pandas/core/indexes/multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,13 +882,13 @@ def set_codes(self, codes, level=None, inplace=False, verify_integrity=True):
Parameters
----------
codes : sequence or list of sequence
new codes to apply
New codes to apply.
level : int, level name, or sequence of int/level names (default None)
level(s) to set (None for all levels)
Level(s) to set (None for all levels).
inplace : bool
if True, mutates in place
If True, mutates in place.
verify_integrity : bool (default True)
if True, checks that levels and codes are compatible
If True, checks that levels and codes are compatible.

Returns
-------
Expand Down Expand Up @@ -1717,7 +1717,7 @@ def to_hierarchical(self, n_repeat, n_shuffle=1):
Parameters
----------
n_repeat : int
Number of times to repeat the labels on self
Number of times to repeat the labels on self.
n_shuffle : int
Controls the reordering of the labels. If the result is going
to be an inner level in a MultiIndex, n_shuffle will need to be
Expand Down Expand Up @@ -2335,11 +2335,11 @@ def sortlevel(self, level=0, ascending=True, sort_remaining=True):
Parameters
----------
level : list-like, int or str, default 0
If a string is given, must be a name of the level
If a string is given, must be a name of the level.
If list-like must be names or ints of levels.
ascending : bool, default True
False to sort in descending order
Can also be a list to specify a directed ordering
False to sort in descending order.
Can also be a list to specify a directed ordering.
sort_remaining : sort by the remaining levels after level

Returns
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/reshape/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def merge_asof(
- If True, allow matching with the same 'on' value
(i.e. less-than-or-equal-to / greater-than-or-equal-to)
- If False, don't match the same 'on' value
(i.e., strictly less-than / strictly greater-than)
(i.e., strictly less-than / strictly greater-than).

direction : 'backward' (default), 'forward', or 'nearest'
Whether to search for prior, subsequent, or closest matches.
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/reshape/tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def qcut(x, q, labels=None, retbins=False, precision=3, duplicates="raise"):
Whether to return the (bins, labels) or not. Can be useful if bins
is given as a scalar.
precision : int, optional
The precision at which to store and display the bins labels
The precision at which to store and display the bins labels.
duplicates : {default 'raise', 'drop'}, optional
If bin edges are not unique, raise ValueError or drop non-uniques.

Expand Down
6 changes: 3 additions & 3 deletions pandas/core/tools/numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def to_numeric(arg, errors="raise", downcast=None):
----------
arg : scalar, list, tuple, 1-d array, or Series
errors : {'ignore', 'raise', 'coerce'}, default 'raise'
- If 'raise', then invalid parsing will raise an exception
- If 'coerce', then invalid parsing will be set as NaN
- If 'ignore', then invalid parsing will return the input
- If 'raise', then invalid parsing will raise an exception.
- If 'coerce', then invalid parsing will be set as NaN.
- If 'ignore', then invalid parsing will return the input.
downcast : {'integer', 'signed', 'unsigned', 'float'}, default None
If not None, and if the data has been successfully cast to a
numerical dtype (or if the data was numeric to begin with),
Expand Down
4 changes: 2 additions & 2 deletions pandas/io/excel/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,9 +552,9 @@ class ExcelWriter(metaclass=abc.ABCMeta):
``io.excel.<extension>.writer``. NOTE: can only be passed as a keyword
argument.
date_format : str, default None
Format string for dates written into Excel files (e.g. 'YYYY-MM-DD')
Format string for dates written into Excel files (e.g. 'YYYY-MM-DD').
datetime_format : str, default None
Format string for datetime objects written into Excel files
Format string for datetime objects written into Excel files.
(e.g. 'YYYY-MM-DD HH:MM:SS')
mode : {'w', 'a'}, default 'w'
File mode to use (write or append).
Expand Down
2 changes: 1 addition & 1 deletion pandas/io/pytables.py
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ def append(
table(t) : table format
Write as a PyTables Table structure which may perform
worse but allow more flexible operations like searching
/ selecting subsets of the data
/ selecting subsets of the data.
append : bool, default True
Append the input data to the existing.
data_columns : list of columns, or True, default None
Expand Down
2 changes: 1 addition & 1 deletion pandas/io/spss.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def read_spss(
Parameters
----------
path : string or Path
File path
File path.
usecols : list-like, optional
Return a subset of the columns. If None, return all columns.
convert_categoricals : bool, default is True
Expand Down
4 changes: 2 additions & 2 deletions pandas/io/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def read_sql_query(
to pass parameters is database driver dependent. Check your
database driver documentation for which of the five syntax styles,
described in PEP 249's paramstyle, is supported.
Eg. for psycopg2, uses %(name)s so use params={'name' : 'value'}
Eg. for psycopg2, uses %(name)s so use params={'name' : 'value'}.
parse_dates : list or dict, default: None
- List of column names to parse as dates.
- Dict of ``{column_name: format string}`` where format string is
Expand Down Expand Up @@ -372,7 +372,7 @@ def read_sql(
to pass parameters is database driver dependent. Check your
database driver documentation for which of the five syntax styles,
described in PEP 249's paramstyle, is supported.
Eg. for psycopg2, uses %(name)s so use params={'name' : 'value'}
Eg. for psycopg2, uses %(name)s so use params={'name' : 'value'}.
parse_dates : list or dict, default: None
- List of column names to parse as dates.
- Dict of ``{column_name: format string}`` where format string is
Expand Down
2 changes: 1 addition & 1 deletion pandas/tseries/frequencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def infer_freq(index, warn=True):
Parameters
----------
index : DatetimeIndex or TimedeltaIndex
if passed a Series will use the values of the series (NOT THE INDEX)
if passed a Series will use the values of the series (NOT THE INDEX).
warn : bool, default True

Returns
Expand Down