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-14Lines changed: 17 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -22,11 +22,11 @@ users upgrade to this version.
22
22
23
23
- :ref:`Bug Fixes <whatsnew_0160.bug_fixes>`
24
24
25
+
.. _whatsnew_0160.enhancements:
26
+
25
27
New features
26
28
~~~~~~~~~~~~
27
29
28
-
.. _whatsnew_0160.enhancements:
29
-
30
30
- Reindex now supports ``method='nearest'`` for frames or series with a monotonic increasing or decreasing index (:issue:`9258`):
31
31
32
32
.. ipython:: python
@@ -70,11 +70,11 @@ New features
70
70
- Added ``days_in_month`` (compatibility alias ``daysinmonth``) property to ``Timestamp``, ``DatetimeIndex``, ``Period``, ``PeriodIndex``, and ``Series.dt`` (:issue:`9572`)
71
71
- Added ``decimal`` option in ``to_csv`` to provide formatting for non-'.' decimal separators (:issue:`781`)
72
72
73
+
.. _whatsnew_0160.enhancements.assign:
74
+
73
75
DataFrame Assign
74
76
~~~~~~~~~~~~~~~~
75
77
76
-
.. _whatsnew_0160.enhancements.assign:
77
-
78
78
Inspired by `dplyr's
79
79
<http://cran.rstudio.com/web/packages/dplyr/vignettes/introduction.html#mutate>`__ ``mutate`` verb, DataFrame has a new
80
80
:meth:`~pandas.DataFrame.assign` method.
@@ -116,11 +116,11 @@ calculate the ratio, and plot
116
116
See the :ref:`documentation <dsintro.chained_assignment>` for more. (:issue:`9229`)
117
117
118
118
119
+
.. _whatsnew_0160.enhancements.sparse:
120
+
119
121
Interaction with scipy.sparse
120
122
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
121
123
122
-
.. _whatsnew_0160.enhancements.sparse:
123
-
124
124
Added :meth:`SparseSeries.to_coo` and :meth:`SparseSeries.from_coo` methods (:issue:`8048`) for converting to and from ``scipy.sparse.coo_matrix`` instances (see :ref:`here <sparse.scipysparse>`). For example, given a SparseSeries with MultiIndex we can convert to a `scipy.sparse.coo_matrix` by specifying the row and column labels as index levels:
125
125
126
126
.. ipython:: python
@@ -171,6 +171,9 @@ Backwards incompatible API changes
171
171
172
172
.. _whatsnew_0160.api_breaking.timedelta:
173
173
174
+
Changes in Timedelta
175
+
~~~~~~~~~~~~~~~~~~~~
176
+
174
177
In v0.15.0 a new scalar type ``Timedelta`` was introduced, that is a
175
178
sub-class of ``datetime.timedelta``. Mentioned :ref:`here <whatsnew_0150.timedeltaindex>` was a notice of an API change w.r.t. the ``.seconds`` accessor. The intent was to provide a user-friendly set of accessors that give the 'natural' value for that unit, e.g. if you had a ``Timedelta('1 day, 10:11:12')``, then ``.seconds`` would return 12. However, this is at odds with the definition of ``datetime.timedelta``, which defines ``.seconds`` as ``10 * 3600 + 11 * 60 + 12 == 36672``.
176
179
@@ -207,11 +210,11 @@ Using ``.components`` allows the full component access
207
210
t.components
208
211
t.components.seconds
209
212
213
+
.. _whatsnew_0160.api_breaking.indexing:
214
+
210
215
Indexing Changes
211
216
~~~~~~~~~~~~~~~~
212
217
213
-
.. _whatsnew_0160.api_breaking.indexing:
214
-
215
218
The behavior of a small sub-set of edge cases for using ``.loc`` have changed (:issue:`8613`). Furthermore we have improved the content of the error messages that are raised:
216
219
217
220
- 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.
@@ -274,11 +277,11 @@ The behavior of a small sub-set of edge cases for using ``.loc`` have changed (:
274
277
TypeError: Cannot do slice indexing on <class 'pandas.tseries.index.DatetimeIndex'> with <type 'int'> keys
275
278
276
279
280
+
.. _whatsnew_0160.api:
281
+
277
282
API Changes
278
283
~~~~~~~~~~~
279
284
280
-
.. _whatsnew_0160.api:
281
-
282
285
- ``Index.duplicated`` now returns ``np.array(dtype=bool)`` rather than ``Index(dtype=object)`` containing ``bool`` values. (:issue:`8875`)
283
286
- ``DataFrame.to_json`` now returns accurate type serialisation for each column for frames of mixed dtype (:issue:`9037`)
284
287
@@ -395,11 +398,11 @@ Removal of prior version deprecations/changes
395
398
- Removed ``convert_dummies`` in favor of ``get_dummies`` (:issue:`6581`)
396
399
- Removed ``value_range`` in favor of ``describe`` (:issue:`6581`)
397
400
401
+
.. _whatsnew_0160.performance:
402
+
398
403
Performance
399
404
~~~~~~~~~~~
400
405
401
-
.. _whatsnew_0160.performance:
402
-
403
406
- Fixed a performance regression for ``.loc`` indexing with an array or list-like (:issue:`9126`:).
404
407
- ``DataFrame.to_json`` 30x performance improvement for mixed dtype frames. (:issue:`9037`)
405
408
- Performance improvements in ``MultiIndex.duplicated`` by working with labels instead of values (:issue:`9125`)
@@ -412,11 +415,11 @@ Performance
412
415
- Performance and memory usage improvements in ``DataFrame.duplicated`` (:issue:`9398`)
413
416
- Cythonized ``Period`` (:issue:`9440`)
414
417
418
+
.. _whatsnew_0160.bug_fixes:
419
+
415
420
Bug Fixes
416
421
~~~~~~~~~
417
422
418
-
.. _whatsnew_0160.bug_fixes:
419
-
420
423
- Changed ``.to_html`` to remove leading/trailing spaces in table body (:issue:`4987`)
421
424
- Fixed issue using ``read_csv`` on s3 with Python 3 (:issue:`9452`)
422
425
- Fixed compatibility issue in ``DatetimeIndex`` affecting architectures where ``numpy.int_`` defaults to ``numpy.int32`` (:issue:`8943`)
0 commit comments