Skip to content

DOC: Spellcheck of merging.rst, reshaping.rst and timeseries.rst #19081

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 5 commits into from
Jan 5, 2018
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 doc/source/basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2220,7 +2220,7 @@ For example, to select ``bool`` columns:

df.select_dtypes(include=[bool])

You can also pass the name of a dtype in the `numpy dtype hierarchy
You can also pass the name of a dtype in the `NumPy dtype hierarchy
<http://docs.scipy.org/doc/numpy/reference/arrays.scalars.html>`__:

.. ipython:: python
Expand Down
10 changes: 5 additions & 5 deletions doc/source/enhancingperf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ For many use cases writing pandas in pure Python and NumPy is sufficient. In som
computationally heavy applications however, it can be possible to achieve sizeable
speed-ups by offloading work to `cython <http://cython.org/>`__.

This tutorial assumes you have refactored as much as possible in python, for example
This tutorial assumes you have refactored as much as possible in Python, for example
trying to remove for loops and making use of NumPy vectorization, it's always worth
optimising in Python first.

This tutorial walks through a "typical" process of cythonizing a slow computation.
We use an `example from the cython documentation <http://docs.cython.org/src/quickstart/cythonize.html>`__
but in the context of pandas. Our final cythonized solution is around 100 times
faster than the pure python.
faster than the pure Python.

.. _enhancingperf.pure:

Expand All @@ -52,7 +52,7 @@ We have a DataFrame to which we want to apply a function row-wise.
'x': 'x'})
df

Here's the function in pure python:
Here's the function in pure Python:

.. ipython:: python

Expand Down Expand Up @@ -173,7 +173,7 @@ Using ndarray

It's calling series... a lot! It's creating a Series from each row, and get-ting from both
the index and the series (three times for each row). Function calls are expensive
in python, so maybe we could minimize these by cythonizing the apply part.
in Python, so maybe we could minimize these by cythonizing the apply part.

.. note::

Expand Down Expand Up @@ -231,7 +231,7 @@ the rows, applying our ``integrate_f_typed``, and putting this in the zeros arra

.. note::

Loops like this would be *extremely* slow in python, but in Cython looping
Loops like this would be *extremely* slow in Python, but in Cython looping
over NumPy arrays is *fast*.

.. code-block:: ipython
Expand Down
4 changes: 2 additions & 2 deletions doc/source/indexing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ of multi-axis indexing.
``length-1`` of the axis), but may also be used with a boolean
array. ``.iloc`` will raise ``IndexError`` if a requested
indexer is out-of-bounds, except *slice* indexers which allow
out-of-bounds indexing. (this conforms with python/numpy *slice*
out-of-bounds indexing. (this conforms with Python/NumPy *slice*
semantics). Allowed inputs are:

- An integer e.g. ``5``.
Expand Down Expand Up @@ -1517,7 +1517,7 @@ The :meth:`~pandas.DataFrame.lookup` Method

Sometimes you want to extract a set of values given a sequence of row labels
and column labels, and the ``lookup`` method allows for this and returns a
numpy array. For instance:
NumPy array. For instance:

.. ipython:: python

Expand Down
2 changes: 1 addition & 1 deletion doc/source/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ The simplest case is to just pass in ``parse_dates=True``:
df = pd.read_csv('foo.csv', index_col=0, parse_dates=True)
df

# These are python datetime objects
# These are Python datetime objects
df.index

It is often the case that we may want to store date and time data separately,
Expand Down
Loading