Skip to content

Commit 30764bd

Browse files
committed
Merge pull request pandas-dev#7783 from lexual/docs_categorical_tidyup
Docs: Categorical docs fixups.
2 parents c8f48a5 + d1107f3 commit 30764bd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/source/categorical.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ By using some special functions:
104104

105105
.. note::
106106

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

110110
To get back to the original Series or `numpy` array, use ``Series.astype(original_dtype)`` or
@@ -397,7 +397,7 @@ that only values already in the levels can be assigned.
397397
Getting
398398
~~~~~~~
399399
400-
If the slicing operation returns either a `DataFrame` or a a column of type `Series`,
400+
If the slicing operation returns either a `DataFrame` or a column of type `Series`,
401401
the ``category`` dtype is preserved.
402402
403403
.. ipython:: python
@@ -509,7 +509,7 @@ The same applies to ``df.append(df)``.
509509
Getting Data In/Out
510510
-------------------
511511
512-
Writing data (`Series`, `Frames`) to a HDF store and reading it in entirety works. Querying the hdf
512+
Writing data (`Series`, `Frames`) to a HDF store and reading it in entirety works. Querying the HDF
513513
store does not yet work.
514514
515515
.. ipython:: python
@@ -539,8 +539,8 @@ store does not yet work.
539539
pass
540540
541541
542-
Writing to a csv file will convert the data, effectively removing any information about the
543-
`Categorical` (levels and ordering). So if you read back the csv file you have to convert the
542+
Writing to a CSV file will convert the data, effectively removing any information about the
543+
`Categorical` (levels and ordering). So if you read back the CSV file you have to convert the
544544
relevant columns back to `category` and assign the right levels and level ordering.
545545
546546
.. ipython:: python
@@ -756,4 +756,4 @@ Future compatibility
756756
~~~~~~~~~~~~~~~~~~~~
757757
758758
As `Categorical` is not a native `numpy` dtype, the implementation details of
759-
`Series.cat` can change if such a `numpy` dtype is implemented.
759+
`Series.cat` can change if such a `numpy` dtype is implemented.

0 commit comments

Comments
 (0)