@@ -9,7 +9,7 @@ users upgrade to this version.
9
9
10
10
- Highlights include:
11
11
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>`
13
13
14
14
- :ref:`Other Enhancements <whatsnew_0150.enhancements>`
15
15
@@ -38,7 +38,7 @@ API changes
38
38
- 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`)
39
39
40
40
- :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
42
42
than raising. (This makes all rolling functions consistent in this behavior), (:issue:`7766`)
43
43
44
44
Prior to 0.15.0
@@ -66,6 +66,8 @@ Categoricals in Series/DataFrame
66
66
:class:`~pandas.Categorical` can now be included in `Series` and `DataFrames` and gained new
67
67
methods to manipulate. Thanks to Jan Schultz for much of this API/implementation. (:issue:`3943`, :issue:`5313`, :issue:`5314`, :issue:`7444`).
68
68
69
+ For full docs, see the :ref:`Categorical introduction <categorical>` and the :ref:`API documentation <api.categorical>`.
70
+
69
71
.. ipython:: python
70
72
71
73
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
85
87
df.sort("grade")
86
88
df.groupby("grade").size()
87
89
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>)``.
92
92
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
94
94
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.
96
96
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>`.
100
100
101
101
102
102
@@ -126,7 +126,7 @@ See the :ref:`Categorical introduction<_categorical>` and the :ref:`API document
126
126
Prior Version Deprecations/Changes
127
127
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
128
128
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.
130
130
131
131
.. _whatsnew_0150.deprecations:
132
132
0 commit comments