Skip to content

Docs: Categorical docs fixups. #7783

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 1 commit into from
Jul 18, 2014
Merged
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
12 changes: 6 additions & 6 deletions doc/source/categorical.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ By using some special functions:

.. note::

I contrast to R's `factor` function, there is currently no way to assign/change labels at
In contrast to R's `factor` function, there is currently no way to assign/change labels at
creation time. Use `levels` to change the levels after creation time.

To get back to the original Series or `numpy` array, use ``Series.astype(original_dtype)`` or
Expand Down Expand Up @@ -397,7 +397,7 @@ that only values already in the levels can be assigned.
Getting
~~~~~~~

If the slicing operation returns either a `DataFrame` or a a column of type `Series`,
If the slicing operation returns either a `DataFrame` or a column of type `Series`,
the ``category`` dtype is preserved.

.. ipython:: python
Expand Down Expand Up @@ -509,7 +509,7 @@ The same applies to ``df.append(df)``.
Getting Data In/Out
-------------------

Writing data (`Series`, `Frames`) to a HDF store and reading it in entirety works. Querying the hdf
Writing data (`Series`, `Frames`) to a HDF store and reading it in entirety works. Querying the HDF
store does not yet work.

.. ipython:: python
Expand Down Expand Up @@ -539,8 +539,8 @@ store does not yet work.
pass


Writing to a csv file will convert the data, effectively removing any information about the
`Categorical` (levels and ordering). So if you read back the csv file you have to convert the
Writing to a CSV file will convert the data, effectively removing any information about the
`Categorical` (levels and ordering). So if you read back the CSV file you have to convert the
relevant columns back to `category` and assign the right levels and level ordering.

.. ipython:: python
Expand Down Expand Up @@ -756,4 +756,4 @@ Future compatibility
~~~~~~~~~~~~~~~~~~~~

As `Categorical` is not a native `numpy` dtype, the implementation details of
`Series.cat` can change if such a `numpy` dtype is implemented.
`Series.cat` can change if such a `numpy` dtype is implemented.