@@ -104,7 +104,7 @@ By using some special functions:
104
104
105
105
.. note ::
106
106
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
108
108
creation time. Use `levels ` to change the levels after creation time.
109
109
110
110
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.
397
397
Getting
398
398
~~~~~~~
399
399
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` ,
401
401
the `` category`` dtype is preserved.
402
402
403
403
.. ipython:: python
@@ -509,7 +509,7 @@ The same applies to ``df.append(df)``.
509
509
Getting Data In/ Out
510
510
------------------ -
511
511
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
513
513
store does not yet work.
514
514
515
515
.. ipython:: python
@@ -539,8 +539,8 @@ store does not yet work.
539
539
pass
540
540
541
541
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
544
544
relevant columns back to `category` and assign the right levels and level ordering.
545
545
546
546
.. ipython:: python
@@ -756,4 +756,4 @@ Future compatibility
756
756
~~~~~~~~~~~~~~~~~~~~
757
757
758
758
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