Skip to content

Commit

Permalink
fix minor typos in dsintro.rst (#25579)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonez authored and WillAyd committed Mar 7, 2019
1 parent 09f4484 commit 74a9ae3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/source/getting_started/dsintro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -576,14 +576,14 @@ To write code compatible with all versions of Python, split the assignment in tw
.. warning::

Dependent assignment maybe subtly change the behavior of your code between
Dependent assignment may subtly change the behavior of your code between
Python 3.6 and older versions of Python.

If you wish write code that supports versions of python before and after 3.6,
If you wish to write code that supports versions of python before and after 3.6,
you'll need to take care when passing ``assign`` expressions that

* Updating an existing column
* Referring to the newly updated column in the same ``assign``
* Update an existing column
* Refer to the newly updated column in the same ``assign``

For example, we'll update column "A" and then refer to it when creating "B".

Expand Down Expand Up @@ -665,8 +665,8 @@ row-wise. For example:
df - df.iloc[0]
In the special case of working with time series data, and the DataFrame index
also contains dates, the broadcasting will be column-wise:
In the special case of working with time series data, if the DataFrame index
contains dates, the broadcasting will be column-wise:

.. ipython:: python
:okwarning:
Expand Down

0 comments on commit 74a9ae3

Please sign in to comment.