@@ -28,14 +28,14 @@ For many use cases writing pandas in pure Python and NumPy is sufficient. In som
2828computationally heavy applications however, it can be possible to achieve sizeable
2929speed-ups by offloading work to `cython <http://cython.org/ >`__.
3030
31- This tutorial assumes you have refactored as much as possible in python , for example
31+ This tutorial assumes you have refactored as much as possible in Python , for example
3232trying to remove for loops and making use of NumPy vectorization, it's always worth
3333optimising in Python first.
3434
3535This tutorial walks through a "typical" process of cythonizing a slow computation.
3636We use an `example from the cython documentation <http://docs.cython.org/src/quickstart/cythonize.html >`__
3737but in the context of pandas. Our final cythonized solution is around 100 times
38- faster than the pure python .
38+ faster than the pure Python .
3939
4040.. _enhancingperf.pure :
4141
@@ -52,7 +52,7 @@ We have a DataFrame to which we want to apply a function row-wise.
5252 ' x' : ' x' })
5353 df
5454
55- Here's the function in pure python :
55+ Here's the function in pure Python :
5656
5757.. ipython :: python
5858
@@ -173,7 +173,7 @@ Using ndarray
173173
174174It's calling series... a lot! It's creating a Series from each row, and get-ting from both
175175the index and the series (three times for each row). Function calls are expensive
176- in python , so maybe we could minimize these by cythonizing the apply part.
176+ in Python , so maybe we could minimize these by cythonizing the apply part.
177177
178178.. note ::
179179
@@ -231,7 +231,7 @@ the rows, applying our ``integrate_f_typed``, and putting this in the zeros arra
231231
232232 .. note ::
233233
234- Loops like this would be *extremely * slow in python , but in Cython looping
234+ Loops like this would be *extremely * slow in Python , but in Cython looping
235235 over NumPy arrays is *fast *.
236236
237237.. code-block :: ipython
0 commit comments