Skip to content

Commit 279578c

Browse files
committed
DOC: whatsnew 0.22 edits
1 parent 695e893 commit 279578c

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

doc/source/whatsnew/v0.22.0.txt

+9-6
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,15 @@ levels <merging.merge_on_columns_and_levels>` documentation section.
6565

6666
.. _whatsnew_0220.enhancements.ran_inf:
6767

68-
handle ``inf`` values properly when ``NaN`` are present
69-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68+
``.rank()`` handles ``inf`` values when ``NaN`` are present
69+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7070

71-
In previous version, ``inf`` elements were assigned ``NaN`` as their ranks. Now ranks are calculated properly. (:issue:`6945`)
71+
In previous versions, ``.rank()`` would assign ``inf`` elements ``NaN`` as their ranks. Now ranks are calculated properly. (:issue:`6945`)
7272

7373
.. ipython:: python
7474

7575
s = pd.Series([-np.inf, 0, 1, np.nan, np.inf])
76+
s
7677

7778
Previous Behavior:
7879

@@ -98,6 +99,7 @@ Furthermore, previously if you rank ``inf`` or ``-inf`` values together with ``N
9899
.. ipython:: python
99100

100101
s = pd.Series([np.nan, np.nan, -np.inf, -np.inf])
102+
s
101103

102104
Previous Behavior:
103105

@@ -156,6 +158,9 @@ If installed, we now require:
156158
+-----------------+-----------------+----------+
157159

158160

161+
- Building pandas for development now requires ``cython >= 0.24`` (:issue:`18613`)
162+
- Building from source now explicity requires ``setuptools`` in ``setup.py`` (:issue:`18113`)
163+
159164
.. _whatsnew_0220.api:
160165

161166
Other API Changes
@@ -169,7 +174,7 @@ Other API Changes
169174
- :class:`Timestamp` will no longer silently ignore unused or invalid ``tz`` or ``tzinfo`` keyword arguments (:issue:`17690`)
170175
- :class:`Timestamp` will no longer silently ignore invalid ``freq`` arguments (:issue:`5168`)
171176
- :class:`CacheableOffset` and :class:`WeekDay` are no longer available in the ``pandas.tseries.offsets`` module (:issue:`17830`)
172-
- `tseries.frequencies.get_freq_group()` and `tseries.frequencies.DAYS` are removed from the public API (:issue:`18034`)
177+
- ``pandas.tseries.frequencies.get_freq_group()`` and ``pandas.tseries.frequencies.DAYS`` are removed from the public API (:issue:`18034`)
173178
- :func:`Series.truncate` and :func:`DataFrame.truncate` will raise a ``ValueError`` if the index is not sorted instead of an unhelpful ``KeyError`` (:issue:`17935`)
174179
- :func:`Index.map` can now accept ``Series`` and dictionary input objects (:issue:`12756`, :issue:`18482`, :issue:`18509`).
175180
- :func:`Dataframe.unstack` will now default to filling with ``np.nan`` for ``object`` columns. (:issue:`12815`)
@@ -178,11 +183,9 @@ Other API Changes
178183
- Restricted ``DateOffset`` keyword arguments. Previously, ``DateOffset`` subclasses allowed arbitrary keyword arguments which could lead to unexpected behavior. Now, only valid arguments will be accepted. (:issue:`17176`, :issue:`18226`).
179184
- :func:`DataFrame.from_items` provides a more informative error message when passed scalar values (:issue:`17312`)
180185
- When created with duplicate labels, ``MultiIndex`` now raises a ``ValueError``. (:issue:`17464`)
181-
- Building from source now explicity requires ``setuptools`` in ``setup.py`` (:issue:`18113`)
182186
- :func:`Series.fillna` now raises a ``TypeError`` instead of a ``ValueError`` when passed a list, tuple or DataFrame as a ``value`` (:issue:`18293`)
183187
- :func:`pandas.DataFrame.merge` no longer casts a ``float`` column to ``object`` when merging on ``int`` and ``float`` columns (:issue:`16572`)
184188
- The default NA value for :class:`UInt64Index` has changed from 0 to ``NaN``, which impacts methods that mask with NA, such as ``UInt64Index.where()`` (:issue:`18398`)
185-
- Building pandas for development now requires ``cython >= 0.24`` (:issue:`18613`)
186189

187190
.. _whatsnew_0220.deprecations:
188191

0 commit comments

Comments
 (0)