Skip to content

Commit 6514c41

Browse files
committed
DOC: change link positions
1 parent d02ac0b commit 6514c41

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

doc/source/whatsnew/v0.16.0.txt

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ users upgrade to this version.
2222

2323
- :ref:`Bug Fixes <whatsnew_0160.bug_fixes>`
2424

25+
.. _whatsnew_0160.enhancements:
26+
2527
New features
2628
~~~~~~~~~~~~
2729

28-
.. _whatsnew_0160.enhancements:
29-
3030
- Reindex now supports ``method='nearest'`` for frames or series with a monotonic increasing or decreasing index (:issue:`9258`):
3131

3232
.. ipython:: python
@@ -70,11 +70,11 @@ New features
7070
- Added ``days_in_month`` (compatibility alias ``daysinmonth``) property to ``Timestamp``, ``DatetimeIndex``, ``Period``, ``PeriodIndex``, and ``Series.dt`` (:issue:`9572`)
7171
- Added ``decimal`` option in ``to_csv`` to provide formatting for non-'.' decimal separators (:issue:`781`)
7272

73+
.. _whatsnew_0160.enhancements.assign:
74+
7375
DataFrame Assign
7476
~~~~~~~~~~~~~~~~
7577

76-
.. _whatsnew_0160.enhancements.assign:
77-
7878
Inspired by `dplyr's
7979
<http://cran.rstudio.com/web/packages/dplyr/vignettes/introduction.html#mutate>`__ ``mutate`` verb, DataFrame has a new
8080
:meth:`~pandas.DataFrame.assign` method.
@@ -116,11 +116,11 @@ calculate the ratio, and plot
116116
See the :ref:`documentation <dsintro.chained_assignment>` for more. (:issue:`9229`)
117117

118118

119+
.. _whatsnew_0160.enhancements.sparse:
120+
119121
Interaction with scipy.sparse
120122
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
121123

122-
.. _whatsnew_0160.enhancements.sparse:
123-
124124
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:
125125

126126
.. ipython:: python
@@ -171,6 +171,9 @@ Backwards incompatible API changes
171171

172172
.. _whatsnew_0160.api_breaking.timedelta:
173173

174+
Changes in Timedelta
175+
~~~~~~~~~~~~~~~~~~~~
176+
174177
In v0.15.0 a new scalar type ``Timedelta`` was introduced, that is a
175178
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``.
176179

@@ -207,11 +210,11 @@ Using ``.components`` allows the full component access
207210
t.components
208211
t.components.seconds
209212

213+
.. _whatsnew_0160.api_breaking.indexing:
214+
210215
Indexing Changes
211216
~~~~~~~~~~~~~~~~
212217

213-
.. _whatsnew_0160.api_breaking.indexing:
214-
215218
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:
216219

217220
- 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 (:
274277
TypeError: Cannot do slice indexing on <class 'pandas.tseries.index.DatetimeIndex'> with <type 'int'> keys
275278

276279

280+
.. _whatsnew_0160.api:
281+
277282
API Changes
278283
~~~~~~~~~~~
279284

280-
.. _whatsnew_0160.api:
281-
282285
- ``Index.duplicated`` now returns ``np.array(dtype=bool)`` rather than ``Index(dtype=object)`` containing ``bool`` values. (:issue:`8875`)
283286
- ``DataFrame.to_json`` now returns accurate type serialisation for each column for frames of mixed dtype (:issue:`9037`)
284287

@@ -395,11 +398,11 @@ Removal of prior version deprecations/changes
395398
- Removed ``convert_dummies`` in favor of ``get_dummies`` (:issue:`6581`)
396399
- Removed ``value_range`` in favor of ``describe`` (:issue:`6581`)
397400

401+
.. _whatsnew_0160.performance:
402+
398403
Performance
399404
~~~~~~~~~~~
400405

401-
.. _whatsnew_0160.performance:
402-
403406
- Fixed a performance regression for ``.loc`` indexing with an array or list-like (:issue:`9126`:).
404407
- ``DataFrame.to_json`` 30x performance improvement for mixed dtype frames. (:issue:`9037`)
405408
- Performance improvements in ``MultiIndex.duplicated`` by working with labels instead of values (:issue:`9125`)
@@ -412,11 +415,11 @@ Performance
412415
- Performance and memory usage improvements in ``DataFrame.duplicated`` (:issue:`9398`)
413416
- Cythonized ``Period`` (:issue:`9440`)
414417

418+
.. _whatsnew_0160.bug_fixes:
419+
415420
Bug Fixes
416421
~~~~~~~~~
417422

418-
.. _whatsnew_0160.bug_fixes:
419-
420423
- Changed ``.to_html`` to remove leading/trailing spaces in table body (:issue:`4987`)
421424
- Fixed issue using ``read_csv`` on s3 with Python 3 (:issue:`9452`)
422425
- Fixed compatibility issue in ``DatetimeIndex`` affecting architectures where ``numpy.int_`` defaults to ``numpy.int32`` (:issue:`8943`)

0 commit comments

Comments
 (0)