@@ -21,7 +21,7 @@ Highlights include:
21
21
- API breaking change to the ``.resample`` method to make it more ``.groupby``
22
22
like, see :ref:`here <whatsnew_0180.breaking.resample>`.
23
23
- Removal of support for positional indexing with floats, which was deprecated
24
- since 0.14.0. This will now raise a ``TypeError``, see :ref:`here <whatsnew_0180.enhancements. float_indexers>`.
24
+ since 0.14.0. This will now raise a ``TypeError``, see :ref:`here <whatsnew_0180.float_indexers>`.
25
25
- The ``.to_xarray()`` function has been added for compatibility with the
26
26
`xarray package <http://xarray.pydata.org/en/stable/>`__, see :ref:`here <whatsnew_0180.enhancements.xarray>`.
27
27
- Addition of the :ref:`.str.extractall() method <whatsnew_0180.enhancements.extract>`,
@@ -327,11 +327,8 @@ In addition, ``.round()``, ``.floor()`` and ``.ceil()`` will be available thru t
327
327
Formatting of integer in FloatIndex
328
328
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
329
329
330
- Integers in ``FloatIndex``, e.g. 1., are now formatted with a decimal point
331
- and a ``0`` digit, e.g. ``1.0`` (:issue:`11713`)
332
-
333
- This change affects the display in jupyter, but also the output of IO methods
334
- like ``.to_csv`` or ``.to_html``
330
+ Integers in ``FloatIndex``, e.g. 1., are now formatted with a decimal point and a ``0`` digit, e.g. ``1.0`` (:issue:`11713`)
331
+ This change not only affects the display in a jupyter notebook, but also the output of IO methods like ``.to_csv`` or ``.to_html``
335
332
336
333
Previous Behavior:
337
334
@@ -887,7 +884,7 @@ In 0.18.0, this deprecation warning is removed and these will now raise a ``Type
887
884
888
885
Previous Behavior:
889
886
890
- .. code-block::
887
+ .. code-block:: python
891
888
892
889
In [1]: s = Series([1,2,3])
893
890
In [2]: s[1.0]
@@ -904,7 +901,7 @@ Previous Behavior:
904
901
905
902
New Behavior:
906
903
907
- .. code-block::
904
+ .. code-block:: python
908
905
909
906
In [4]: s[1.0]
910
907
TypeError: cannot do label indexing on <class 'pandas.indexes.range.RangeIndex'> with these indexers [1.0] of <type 'float'>
@@ -915,6 +912,14 @@ New Behavior:
915
912
In [4]: s.loc[1.0]
916
913
TypeError: cannot do label indexing on <class 'pandas.indexes.range.RangeIndex'> with these indexers [1.0] of <type 'float'>
917
914
915
+ Float indexing on a ``Float64Index`` is unchanged.
916
+
917
+ .. ipython:: python
918
+
919
+ s = Series([1,2,3],index=np.arange(3.))
920
+ s[1.0]
921
+ s[1.0:2.5]
922
+
918
923
.. _whatsnew_0180.prior_deprecations:
919
924
920
925
Removal of prior version deprecations/changes
0 commit comments