@@ -295,7 +295,7 @@ Null-values are no longer coerced to NaN-value in value_counts and mode |
|
|
295 |
295 |
.. ipython:: python |
296 |
296 |
|
297 |
297 |
s = pd.Series([True, None, pd.NaT, None, pd.NaT, None]) |
298 |
|
- res = s.value_counts(dropna=False) |
|
298 |
+ res = s.value_counts(dropna=False).keys() |
299 |
299 |
|
300 |
300 |
Previously, all null-values were replaced by a NaN-value. |
301 |
301 |
|
@@ -304,10 +304,7 @@ Previously, all null-values were replaced by a NaN-value. |
|
|
304 |
304 |
.. code-block:: ipython |
305 |
305 |
|
306 |
306 |
In [3]: res |
307 |
|
- Out[3]: |
308 |
|
- NaN 5 |
309 |
|
- True 1 |
310 |
|
- dtype: int64 |
|
307 |
+ Out[3]: Index([nan, True], dtype='object') |
311 |
308 |
|
312 |
309 |
Now null-values are no longer mangled. |
313 |
310 |
|