From 3f87954707fa3677c13635138e946d3a65256b0a Mon Sep 17 00:00:00 2001 From: Ka Wo Chen Date: Thu, 10 Sep 2015 06:50:11 -0400 Subject: [PATCH] DOC/CLN: typo and redundant code --- doc/README.rst | 2 +- doc/source/gotchas.rst | 4 ++-- pandas/core/groupby.py | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/README.rst b/doc/README.rst index 7f001192f5d73..06d95e6b9c44d 100644 --- a/doc/README.rst +++ b/doc/README.rst @@ -114,7 +114,7 @@ Often it will be necessary to rebuild the C extension after updating:: Building the documentation ^^^^^^^^^^^^^^^^^^^^^^^^^^ -So how do you build the docs? Navigate to your local the folder +So how do you build the docs? Navigate to your local folder ``pandas/doc/`` directory in the console and run:: python make.py html diff --git a/doc/source/gotchas.rst b/doc/source/gotchas.rst index cf4a86d530180..fe7ab67b7f759 100644 --- a/doc/source/gotchas.rst +++ b/doc/source/gotchas.rst @@ -297,7 +297,7 @@ concise means of selecting data from a pandas object: df df.ix[['b', 'c', 'e']] -This is, of course, completely equivalent *in this case* to using th +This is, of course, completely equivalent *in this case* to using the ``reindex`` method: .. ipython:: python @@ -455,7 +455,7 @@ parse HTML tables in the top-level pandas io function ``read_html``. * Drawbacks - * |lxml|_ does *not* make any guarantees about the results of it's parse + * |lxml|_ does *not* make any guarantees about the results of its parse *unless* it is given |svm|_. * In light of the above, we have chosen to allow you, the user, to use the diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py index 7133a6b6d6baf..a87476ee0f847 100644 --- a/pandas/core/groupby.py +++ b/pandas/core/groupby.py @@ -218,7 +218,6 @@ def __init__(self, key=None, level=None, freq=None, axis=0, sort=False): self.obj=None self.indexer=None self.binner=None - self.grouper=None @property def ax(self): @@ -424,7 +423,7 @@ def _get_indices(self, names): """ safe get multiple indices, translate keys for datelike to underlying repr """ def get_converter(s): - # possibly convert to they actual key types + # possibly convert to the actual key types # in the indices, could be a Timestamp or a np.datetime64 if isinstance(s, (Timestamp,datetime.datetime)): return lambda key: Timestamp(key)