Skip to content

Commit 2d3216d

Browse files
committed
DOC: v0.15.0.txt corrections
1 parent 0cff907 commit 2d3216d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

doc/source/v0.15.0.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ users upgrade to this version.
99

1010
- Highlights include:
1111

12-
- The ``Categorical`` type was integrated as a first-class pandas type, see here: :ref:`Categorical Changes <whatsnew_0150.cat>`
12+
- The ``Categorical`` type was integrated as a first-class pandas type, see :ref:`here <whatsnew_0150.cat>`
1313

1414
- :ref:`Other Enhancements <whatsnew_0150.enhancements>`
1515

@@ -38,7 +38,7 @@ API changes
3838
- Raise a ``ValueError`` in ``df.to_hdf`` with 'fixed' format, if ``df`` has non-unique columns as the resulting file will be broken (:issue:`7761`)
3939

4040
- :func:`rolling_min`, :func:`rolling_max`, :func:`rolling_cov`, and :func:`rolling_corr`
41-
now return objects with all ``NaN``s when ``len(arg) < min_periods <= window`` rather
41+
now return objects with all ``NaN`` when ``len(arg) < min_periods <= window`` rather
4242
than raising. (This makes all rolling functions consistent in this behavior), (:issue:`7766`)
4343

4444
Prior to 0.15.0
@@ -66,6 +66,8 @@ Categoricals in Series/DataFrame
6666
:class:`~pandas.Categorical` can now be included in `Series` and `DataFrames` and gained new
6767
methods to manipulate. Thanks to Jan Schultz for much of this API/implementation. (:issue:`3943`, :issue:`5313`, :issue:`5314`, :issue:`7444`).
6868

69+
For full docs, see the :ref:`Categorical introduction <categorical>` and the :ref:`API documentation <api.categorical>`.
70+
6971
.. ipython:: python
7072

7173
df = pd.DataFrame({"id":[1,2,3,4,5,6], "raw_grade":['a', 'b', 'b', 'a', 'a', 'e']})
@@ -85,18 +87,16 @@ methods to manipulate. Thanks to Jan Schultz for much of this API/implementation
8587
df.sort("grade")
8688
df.groupby("grade").size()
8789

88-
See the :ref:`Categorical introduction<_categorical>` and the :ref:`API documentation<api.categorical>`.
89-
90-
- `pandas.core.group_agg` and `pandas.core.factor_agg` were removed. As an alternative, construct
91-
a dataframe and use `df.groupby(<group>).agg(<func>)`.
90+
- ``pandas.core.group_agg`` and ``pandas.core.factor_agg`` were removed. As an alternative, construct
91+
a dataframe and use ``df.groupby(<group>).agg(<func>)``.
9292

93-
- Supplying "codes/labels and levels" to the `pandas.Categorical` constructor is deprecated and does
93+
- Supplying "codes/labels and levels" to the :class:`~pandas.Categorical` constructor is deprecated and does
9494
not work without supplying ``compat=True``. The default mode now uses "values and levels".
95-
Please change your code to use the ``Categorical.from_codes(...)`` constructor.
95+
Please change your code to use the :meth:`~pandas.Categorical.from_codes` constructor.
9696

97-
- The `pandas.Categorical.labels` attribute was renamed to `pandas.Categorical.codes` and is read
98-
only. If you want to manipulate the `Categorical`, please use one of the
99-
:ref:`API methods on Categoricals<api.categorical>`.
97+
- The ``Categorical.labels`` attribute was renamed to ``Categorical.codes`` and is read
98+
only. If you want to manipulate codes, please use one of the
99+
:ref:`API methods on Categoricals <api.categorical>`.
100100

101101

102102

@@ -126,7 +126,7 @@ See the :ref:`Categorical introduction<_categorical>` and the :ref:`API document
126126
Prior Version Deprecations/Changes
127127
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
128128

129-
There are prior version deprecations that are taking effect as of 0.15.0.
129+
There are no prior version deprecations that are taking effect as of 0.15.0.
130130

131131
.. _whatsnew_0150.deprecations:
132132

0 commit comments

Comments
 (0)