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
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.16.0.txt
+17-20Lines changed: 17 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -242,7 +242,7 @@ Backwards incompatible API changes
242
242
243
243
- ``Series`` now supports bitwise operation for integral types (:issue:`9016`)
244
244
245
-
Previously even if the input dtypes where integral, the output dtype was coerced to ``bool``.
245
+
Previously even if the input dtypes were integral, the output dtype was coerced to ``bool``.
246
246
247
247
.. code-block:: python
248
248
In [2]: pd.Series([0,1,2,3], list('abcd')) | pd.Series([4,4,4,4], list('abcd'))
@@ -297,8 +297,8 @@ Backwards incompatible API changes
297
297
p / 0
298
298
p // 0
299
299
300
-
- ``Series.values_counts`` and ``Series.describe`` for categorical data will now put NaN entries at the end. (:issue:`9443`)
301
-
- ``Series.describe`` for categorical data will now give counts and frequencies of 0, not NA, for unused categories (:issue:`9443`)
300
+
- ``Series.values_counts`` and ``Series.describe`` for categorical data will now put ``NaN`` entries at the end. (:issue:`9443`)
301
+
- ``Series.describe`` for categorical data will now give counts and frequencies of 0, not ``NaN``, for unused categories (:issue:`9443`)
302
302
303
303
304
304
Indexing Changes
@@ -310,9 +310,11 @@ The behavior of a small sub-set of edge cases for using ``.loc`` have changed (:
310
310
311
311
- slicing with ``.loc`` where the start and/or stop bound is not found in the index is now allowed; this previously would raise a ``KeyError``. This makes the behavior the same as ``.ix`` in this case. This change is only for slicing, not when indexing with a single label.
@@ -336,23 +338,18 @@ The behavior of a small sub-set of edge cases for using ``.loc`` have changed (:
336
338
337
339
- allow slicing with float-like values on an integer index for ``.ix``. Previously this was only enabled for ``.loc``:
338
340
339
-
.. code-block:: python
340
-
341
341
Previous Behavior
342
342
343
+
.. code-block:: python
344
+
343
345
In [8]: s.ix[-1.0:2]
344
346
TypeError: the slice start value [-1.0] is not a proper indexer for this index type (Int64Index)
345
347
346
348
New Behavior
347
349
348
350
.. ipython:: python
349
351
350
-
In [8]: s.ix[-1.0:2]
351
-
Out[2]:
352
-
-1 1
353
-
1 2
354
-
2 3
355
-
dtype: int64
352
+
s.ix[-1.0:2]
356
353
357
354
- provide a useful exception for indexing with an invalid type for that index when using ``.loc``. For example trying to use ``.loc`` on an index of type ``DatetimeIndex`` or ``PeriodIndex`` or ``TimedeltaIndex``, with an integer (or a float).
358
355
@@ -425,7 +422,7 @@ Bug Fixes
425
422
.. _whatsnew_0160.bug_fixes:
426
423
427
424
- Changed ``.to_html`` to remove leading/trailing spaces in table body (:issue:`4987`)
428
-
- Fixed issue using ``read_csv`` on s3 with Python 3.
425
+
- Fixed issue using ``read_csv`` on s3 with Python 3 (:issue:`9452`)
429
426
- Fixed compatibility issue in ``DatetimeIndex`` affecting architectures where ``numpy.int_`` defaults to ``numpy.int32`` (:issue:`8943`)
430
427
- Bug in Panel indexing with an object-like (:issue:`9140`)
431
428
- Bug in the returned ``Series.dt.components`` index was reset to the default index (:issue:`9247`)
@@ -434,16 +431,16 @@ Bug Fixes
434
431
- Bug in groupby for integer and datetime64 columns when applying an aggregator that caused the value to be
435
432
changed when the number was sufficiently large (:issue:`9311`, :issue:`6620`)
436
433
- Fixed bug in ``to_sql`` when mapping a ``Timestamp`` object column (datetime
437
-
column with timezone info) to the according sqlalchemy type (:issue:`9085`).
434
+
column with timezone info) to the appropriate sqlalchemy type (:issue:`9085`).
438
435
- Fixed bug in ``to_sql`` ``dtype`` argument not accepting an instantiated
439
436
SQLAlchemy type (:issue:`9083`).
440
437
- Bug in ``.loc`` partial setting with a ``np.datetime64`` (:issue:`9516`)
441
-
- Incorrect dtypes inferred on datetimelike looking series & on xs slices (:issue:`9477`)
438
+
- Incorrect dtypes inferred on datetimelike looking ``Series`` & on ``.xs`` slices (:issue:`9477`)
442
439
443
440
- Items in ``Categorical.unique()`` (and ``s.unique()`` if ``s`` is of dtype ``category``) now appear in the order in which they are originally found, not in sorted order (:issue:`9331`). This is now consistent with the behavior for other dtypes in pandas.
444
441
445
442
446
-
- Fixed bug on bug endian platforms which produced incorrect results in ``StataReader`` (:issue:`8688`).
443
+
- Fixed bug on big endian platforms which produced incorrect results in ``StataReader`` (:issue:`8688`).
447
444
448
445
- Bug in ``MultiIndex.has_duplicates`` when having many levels causes an indexer overflow (:issue:`9075`, :issue:`5873`)
449
446
- Bug in ``pivot`` and ``unstack`` where ``nan`` values would break index alignment (:issue:`4862`, :issue:`7401`, :issue:`7403`, :issue:`7405`, :issue:`7466`, :issue:`9497`)
@@ -533,11 +530,11 @@ Bug Fixes
533
530
534
531
535
532
- ``SparseSeries`` and ``SparsePanel`` now accept zero argument constructors (same as their non-sparse counterparts) (:issue:`9272`).
536
-
- Regression in merging Categoricals and object dtypes (:issue:`9426`)
533
+
- Regression in merging ``Categorical`` and ``object`` dtypes (:issue:`9426`)
537
534
- Bug in ``read_csv`` with buffer overflows with certain malformed input files (:issue:`9205`)
538
535
- Bug in groupby MultiIndex with missing pair (:issue:`9049`, :issue:`9344`)
539
536
- Fixed bug in ``Series.groupby`` where grouping on ``MultiIndex`` levels would ignore the sort argument (:issue:`9444`)
540
-
- Fix bug in ``DataFrame.Groupby`` where sort=False is ignored in case of Categorical columns. (:issue:`8868`)
537
+
- Fix bug in ``DataFrame.Groupby`` where ``sort=False`` is ignored in the case of Categorical columns. (:issue:`8868`)
541
538
542
539
543
540
@@ -549,4 +546,4 @@ Bug Fixes
549
546
550
547
551
548
552
-
- Bug in ``Series.values_counts`` with excluding NaN for categorical type ``Series`` with ``dropna=True`` (:issue:`9443`)
549
+
- Bug in ``Series.values_counts`` with excluding ``NaN`` for categorical type ``Series`` with ``dropna=True`` (:issue:`9443`)
0 commit comments