From fadb4f5e514994d963f50fd416c8a62e8ccc36cc Mon Sep 17 00:00:00 2001 From: Jens Leerssen Date: Sun, 3 Mar 2019 15:12:45 -0800 Subject: [PATCH 1/5] DOC: typo - matching singular verb to singular subject --- doc/source/user_guide/indexing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index be1745e2664a1..c2e2de1b46573 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -435,7 +435,7 @@ Selection By Position This is sometimes called ``chained assignment`` and should be avoided. See :ref:`Returning a View versus Copy `. -Pandas provides a suite of methods in order to get **purely integer based indexing**. The semantics follow closely Python and NumPy slicing. These are ``0-based`` indexing. When slicing, the start bounds is *included*, while the upper bound is *excluded*. Trying to use a non-integer, even a **valid** label will raise an ``IndexError``. +Pandas provides a suite of methods in order to get **purely integer based indexing**. The semantics follow closely Python and NumPy slicing. These are ``0-based`` indexing. When slicing, the start bound is *included*, while the upper bound is *excluded*. Trying to use a non-integer, even a **valid** label will raise an ``IndexError``. The ``.iloc`` attribute is the primary access method. The following are valid inputs: From 1787470350ab8b84c53c0f8ff108b50640bacdcc Mon Sep 17 00:00:00 2001 From: Jens Leerssen Date: Sun, 3 Mar 2019 15:17:29 -0800 Subject: [PATCH 2/5] DOC: typo fix - 'and' removed since 'that' is already serving as conjunction --- doc/source/user_guide/indexing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index c2e2de1b46573..db03fcd4f2137 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -545,7 +545,7 @@ Selection By Callable .. versionadded:: 0.18.1 ``.loc``, ``.iloc``, and also ``[]`` indexing can accept a ``callable`` as indexer. -The ``callable`` must be a function with one argument (the calling Series, DataFrame or Panel) and that returns valid output for indexing. +The ``callable`` must be a function with one argument (the calling Series, DataFrame or Panel) that returns valid output for indexing. .. ipython:: python From 4a05ae967c578c2acf8b176ee0d32824a396d29b Mon Sep 17 00:00:00 2001 From: Jens Leerssen Date: Sun, 3 Mar 2019 15:20:48 -0800 Subject: [PATCH 3/5] DOC: typo fix - indefinite article added before the single noun: 'variable' --- doc/source/user_guide/indexing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index db03fcd4f2137..20512a9fb9a89 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -569,7 +569,7 @@ You can use callable indexing in ``Series``. df1.A.loc[lambda s: s > 0] Using these methods / indexers, you can chain data selection operations -without using temporary variable. +without using a temporary variable. .. ipython:: python From fe822e454a014455ad2bc212728d34c0312b4621 Mon Sep 17 00:00:00 2001 From: Jens Leerssen Date: Sun, 3 Mar 2019 15:28:23 -0800 Subject: [PATCH 4/5] DOC: typo fix - definite article added before the single noun: 'method' --- doc/source/user_guide/indexing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index 20512a9fb9a89..722d14eb4586c 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -907,7 +907,7 @@ of the DataFrame): df[df['A'] > 0] -List comprehensions and ``map`` method of Series can also be used to produce +List comprehensions and the ``map`` method of Series can also be used to produce more complex criteria: .. ipython:: python From 8fe53ec5735de9c7f317735f2ef49238130e8d29 Mon Sep 17 00:00:00 2001 From: Jens Leerssen Date: Sun, 3 Mar 2019 15:31:11 -0800 Subject: [PATCH 5/5] DOC: typo fix - added backtick to fix rst formatting --- doc/source/user_guide/indexing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index 722d14eb4586c..00d4dc9efc8cc 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -1556,7 +1556,7 @@ See :ref:`Advanced Indexing ` for usage of MultiIndexes. ind ``set_names``, ``set_levels``, and ``set_codes`` also take an optional -`level`` argument +``level`` argument .. ipython:: python