You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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`)
72
72
73
73
.. ipython:: python
74
74
75
75
s = pd.Series([-np.inf, 0, 1, np.nan, np.inf])
76
+
s
76
77
77
78
Previous Behavior:
78
79
@@ -98,6 +99,7 @@ Furthermore, previously if you rank ``inf`` or ``-inf`` values together with ``N
98
99
.. ipython:: python
99
100
100
101
s = pd.Series([np.nan, np.nan, -np.inf, -np.inf])
102
+
s
101
103
102
104
Previous Behavior:
103
105
@@ -156,6 +158,9 @@ If installed, we now require:
156
158
+-----------------+-----------------+----------+
157
159
158
160
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
+
159
164
.. _whatsnew_0220.api:
160
165
161
166
Other API Changes
@@ -169,7 +174,7 @@ Other API Changes
169
174
- :class:`Timestamp` will no longer silently ignore unused or invalid ``tz`` or ``tzinfo`` keyword arguments (:issue:`17690`)
170
175
- :class:`Timestamp` will no longer silently ignore invalid ``freq`` arguments (:issue:`5168`)
171
176
- :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`)
173
178
- :func:`Series.truncate` and :func:`DataFrame.truncate` will raise a ``ValueError`` if the index is not sorted instead of an unhelpful ``KeyError`` (:issue:`17935`)
174
179
- :func:`Index.map` can now accept ``Series`` and dictionary input objects (:issue:`12756`, :issue:`18482`, :issue:`18509`).
175
180
- :func:`Dataframe.unstack` will now default to filling with ``np.nan`` for ``object`` columns. (:issue:`12815`)
@@ -178,11 +183,9 @@ Other API Changes
178
183
- 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`).
179
184
- :func:`DataFrame.from_items` provides a more informative error message when passed scalar values (:issue:`17312`)
180
185
- 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`)
182
186
- :func:`Series.fillna` now raises a ``TypeError`` instead of a ``ValueError`` when passed a list, tuple or DataFrame as a ``value`` (:issue:`18293`)
183
187
- :func:`pandas.DataFrame.merge` no longer casts a ``float`` column to ``object`` when merging on ``int`` and ``float`` columns (:issue:`16572`)
184
188
- 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`)
0 commit comments