Skip to content

Commit 9714225

Browse files
committed
DOC: v0.16.0.txt corrections
1 parent 89f9eb6 commit 9714225

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed

doc/source/whatsnew/v0.16.0.txt

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Backwards incompatible API changes
242242

243243
- ``Series`` now supports bitwise operation for integral types (:issue:`9016`)
244244

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``.
246246

247247
.. code-block:: python
248248
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
297297
p / 0
298298
p // 0
299299

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`)
302302

303303

304304
Indexing Changes
@@ -310,9 +310,11 @@ The behavior of a small sub-set of edge cases for using ``.loc`` have changed (:
310310

311311
- 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.
312312

313-
.. ipython:: python
313+
.. ipython:: python
314314

315-
df = DataFrame(np.random.randn(5,4), columns=list('ABCD'), index=date_range('20130101',periods=5))
315+
df = DataFrame(np.random.randn(5,4),
316+
columns=list('ABCD'),
317+
index=date_range('20130101',periods=5))
316318
df
317319
s = Series(range(5),[-2,-1,1,2,3])
318320
s
@@ -336,23 +338,18 @@ The behavior of a small sub-set of edge cases for using ``.loc`` have changed (:
336338

337339
- allow slicing with float-like values on an integer index for ``.ix``. Previously this was only enabled for ``.loc``:
338340

339-
.. code-block:: python
340-
341341
Previous Behavior
342342

343+
.. code-block:: python
344+
343345
In [8]: s.ix[-1.0:2]
344346
TypeError: the slice start value [-1.0] is not a proper indexer for this index type (Int64Index)
345347

346348
New Behavior
347349

348350
.. ipython:: python
349351

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]
356353

357354
- 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).
358355

@@ -425,7 +422,7 @@ Bug Fixes
425422
.. _whatsnew_0160.bug_fixes:
426423

427424
- 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`)
429426
- Fixed compatibility issue in ``DatetimeIndex`` affecting architectures where ``numpy.int_`` defaults to ``numpy.int32`` (:issue:`8943`)
430427
- Bug in Panel indexing with an object-like (:issue:`9140`)
431428
- Bug in the returned ``Series.dt.components`` index was reset to the default index (:issue:`9247`)
@@ -434,16 +431,16 @@ Bug Fixes
434431
- Bug in groupby for integer and datetime64 columns when applying an aggregator that caused the value to be
435432
changed when the number was sufficiently large (:issue:`9311`, :issue:`6620`)
436433
- 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`).
438435
- Fixed bug in ``to_sql`` ``dtype`` argument not accepting an instantiated
439436
SQLAlchemy type (:issue:`9083`).
440437
- 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`)
442439

443440
- 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.
444441

445442

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`).
447444

448445
- Bug in ``MultiIndex.has_duplicates`` when having many levels causes an indexer overflow (:issue:`9075`, :issue:`5873`)
449446
- 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
533530

534531

535532
- ``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`)
537534
- Bug in ``read_csv`` with buffer overflows with certain malformed input files (:issue:`9205`)
538535
- Bug in groupby MultiIndex with missing pair (:issue:`9049`, :issue:`9344`)
539536
- 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`)
541538

542539

543540

@@ -549,4 +546,4 @@ Bug Fixes
549546

550547

551548

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

Comments
 (0)