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
Previously, assigning to ``None`` in numeric containers changed the
228
232
dtype to object (or errored, depending on the call). It now uses
229
-
NaN:
233
+
``NaN``:
230
234
231
235
.. ipython:: python
232
236
@@ -236,16 +240,16 @@ API changes
236
240
237
241
``NaT`` is now used similarly for datetime containers.
238
242
239
-
For object containers, we now preserve None values (previously these
240
-
were converted to NaN values).
243
+
For object containers, we now preserve ``None`` values (previously these
244
+
were converted to ``NaN`` values).
241
245
242
246
.. ipython:: python
243
247
244
248
s = Series(["a", "b", "c"])
245
249
s.loc[0] = None
246
250
s
247
251
248
-
To insert a NaN, you must explicitly use ``np.nan``. See the :ref:`docs <missing.inserting>`.
252
+
To insert a ``NaN``, you must explicitly use ``np.nan``. See the :ref:`docs <missing.inserting>`.
249
253
250
254
- Previously an enlargement with a mixed-dtype frame would act unlike ``.append`` which will preserve dtypes (related :issue:`2578`, :issue:`8176`):
251
255
@@ -262,30 +266,10 @@ API changes
262
266
263
267
- ``Series.to_csv()`` now returns a string when ``path=None``, matching the behaviour of ``DataFrame.to_csv()`` (:issue:`8215`).
264
268
265
-
-``read_hdf`` now raises IOError properly when a file that doesn't exist is passed in. Previously, a new, empty file was created, read and stored in an HDFStore object (:issue `7715`).
266
-
267
-
.. _whatsnew_0150.index_set_ops:
268
-
269
-
- The Index set operations ``+`` and ``-`` were deprecated in order to provide these for numeric type operations on certain index types. ``+`` can be replace by ``.union()`` or ``|``, and ``-`` by ``.difference()``. Further the method name ``Index.diff()`` is deprecated and can be replaced by ``Index.difference()`` (:issue:`8226`)
- ``read_hdf`` now raises ``IOError`` when a file that doesn't exist is passed in. Previously, a new, empty file was created, and a ``KeyError`` raised (:issue `7715`).
286
270
287
271
- ``DataFrame.info()`` now ends its output with a newline character (:issue:`8114`)
288
-
- add ``copy=True`` argument to ``pd.concat`` to enable pass thrue of complete blocks (:issue:`8252`)
272
+
- add ``copy=True`` argument to ``pd.concat`` to enable pass thru of complete blocks (:issue:`8252`)
289
273
290
274
291
275
@@ -396,8 +380,7 @@ Rolling/Expanding Moments API changes
396
380
397
381
- :func:`rolling_window` now normalizes the weights properly in rolling mean mode (`mean=True`) so that
398
382
the calculated weighted means (e.g. 'triang', 'gaussian') are distributed about the same means as those
399
-
calculated without weighting (i.e. 'boxcar'). See :ref:`the note on normalization
400
-
<stats.moments.normalization>` for further details. (:issue:`7618`)
383
+
calculated without weighting (i.e. 'boxcar'). See :ref:`the note on normalization <stats.moments.normalization>` for further details. (:issue:`7618`)
401
384
402
385
.. ipython:: python
403
386
@@ -687,7 +670,7 @@ You can select with partial string selections
687
670
s['1 day 00:00:02']
688
671
s['1 day':'1 day 00:00:02']
689
672
690
-
Finally, the combination of ``TimedeltaIndex`` with ``DatetimeIndex`` allow certain combination operations that are NaT preserving:
673
+
Finally, the combination of ``TimedeltaIndex`` with ``DatetimeIndex`` allow certain combination operations that are ``NaT`` preserving:
691
674
692
675
.. ipython:: python
693
676
@@ -720,6 +703,26 @@ Deprecations
720
703
Replace ``infer_dst=True`` with ``ambiguous='infer'`` for the same behavior (:issue:`7943`).
721
704
See :ref:`the docs<timeseries.timezone_ambiguous>` for more details.
722
705
706
+
.. _whatsnew_0150.index_set_ops:
707
+
708
+
- The ``Index`` set operations ``+`` and ``-`` were deprecated in order to provide these for numeric type operations on certain index types. ``+`` can be replace by ``.union()`` or ``|``, and ``-`` by ``.difference()``. Further the method name ``Index.diff()`` is deprecated and can be replaced by ``Index.difference()`` (:issue:`8226`)
0 commit comments