@@ -75,8 +75,8 @@ Experimental Features
75
75
- ``pd.eval `` and friends now evaluate operations involving ``datetime64 ``
76
76
objects in Python space because ``numexpr `` cannot handle ``NaT `` values
77
77
(:issue: `4897 `).
78
- - Add msgpack support via ``pd.read_msgpack() `` and ``pd.to_msgpack()/ df.to_msgpack() `` for serialization
79
- of arbitrary pandas (and python objects) in a lightweight portable binary format (:issue: `686 `)
78
+ - Add msgpack support via ``pd.read_msgpack() `` and ``pd.to_msgpack() `` / `` df.to_msgpack() `` for serialization
79
+ of arbitrary pandas (and python objects) in a lightweight portable binary format (:issue: `686 `)
80
80
81
81
Improvements to existing features
82
82
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -136,8 +136,8 @@ Improvements to existing features
136
136
faster than the default openpyxl xlsx writer and is equivalent in speed
137
137
to the xlwt xls writer module. (:issue: `4542 `)
138
138
- allow DataFrame constructor to accept more list-like objects, e.g. list of
139
- ``collections.Sequence `` and ``array.Array `` objects (:issue: `3783 `,:issue: ` 4297 `, :issue: ` 4851 `),
140
- thanks @lgautier
139
+ ``collections.Sequence `` and ``array.Array `` objects (:issue: `3783 `,
140
+ :issue: ` 4297 `, :issue: ` 4851 `), thanks @lgautier
141
141
- DataFrame constructor now accepts a numpy masked record array (:issue: `3478 `),
142
142
thanks @jnothman
143
143
- ``__getitem__ `` with ``tuple `` key (e.g., ``[:, 2] ``) on ``Series ``
@@ -165,7 +165,7 @@ API Changes
165
165
~~~~~~~~~~~
166
166
167
167
- ``DataFrame.reindex() `` and forward/backward filling now raises ValueError
168
- if either index is not monotonic (:issue: `4483 `, :issue: `4484 `).
168
+ if either index is not monotonic (:issue: `4483 ` , :issue: `4484 `).
169
169
- ``pandas `` now is Python 2/3 compatible without the need for 2to3 thanks to
170
170
@jtratner. As a result, pandas now uses iterators more extensively. This
171
171
also led to the introduction of substantive parts of the Benjamin
@@ -236,11 +236,10 @@ API Changes
236
236
data - allowing metadata changes.
237
237
- ``MultiIndex.astype() `` now only allows ``np.object_ ``-like dtypes and
238
238
now returns a ``MultiIndex `` rather than an ``Index ``. (:issue: `4039 `)
239
- - Added ``is_ `` method to ``Index `` that allows fast equality comparison of
240
- views (similar to ``np.may_share_memory `` but no false positives, and
241
- changes on ``levels `` and ``labels `` setting on ``MultiIndex ``).
242
- (:issue: `4859 `, :issue: `4909 `)
243
-
239
+ - Added ``is_ `` method to ``Index `` that allows fast equality comparison of
240
+ views (similar to ``np.may_share_memory `` but no false positives, and
241
+ changes on ``levels `` and ``labels `` setting on ``MultiIndex ``).
242
+ (:issue: `4859 ` , :issue: `4909 `)
244
243
- Infer and downcast dtype if ``downcast='infer' `` is passed to ``fillna/ffill/bfill `` (:issue: `4604 `)
245
244
- ``__nonzero__ `` for all NDFrame objects, will now raise a ``ValueError ``, this reverts back to (:issue: `1073 `, :issue: `4633 `)
246
245
behavior. Add ``.bool() `` method to ``NDFrame `` objects to facilitate evaluating of single-element boolean Series
@@ -288,7 +287,7 @@ which is the base class currently for ``DataFrame`` and ``Panel``, to unify meth
288
287
and behaviors. Series formerly subclassed directly from ``ndarray ``. (:issue: `4080 `, :issue: `3862 `, :issue: `816 `)
289
288
See :ref: `Internal Refactoring<whatsnew_0130.refactoring> `
290
289
291
- - Refactor of series.py/frame.py/panel.py to move common code to generic.py
290
+ - Refactor of series.py/frame.py/panel.py to move common code to generic.py
292
291
293
292
- added ``_setup_axes `` to created generic NDFrame structures
294
293
- moved methods
@@ -304,15 +303,15 @@ See :ref:`Internal Refactoring<whatsnew_0130.refactoring>`
304
303
- ``reindex,reindex_axis,take ``
305
304
- ``truncate `` (moved to become part of ``NDFrame ``)
306
305
307
- - These are API changes which make ``Panel `` more consistent with ``DataFrame ``
306
+ - These are API changes which make ``Panel `` more consistent with ``DataFrame ``
308
307
309
308
- ``swapaxes `` on a ``Panel `` with the same axes specified now return a copy
310
309
- support attribute access for setting
311
310
- ``filter `` supports same api as original ``DataFrame `` filter
312
311
- ``fillna `` refactored to ``core/generic.py ``, while > 3ndim is ``NotImplemented ``
313
312
314
- - Series now inherits from ``NDFrame `` rather than directly from ``ndarray ``.
315
- There are several minor changes that affect the API.
313
+ - Series now inherits from ``NDFrame `` rather than directly from ``ndarray ``.
314
+ There are several minor changes that affect the API.
316
315
317
316
- numpy functions that do not support the array interface will now
318
317
return ``ndarrays `` rather than series, e.g. ``np.diff ``, ``np.ones_like ``, ``np.where ``
@@ -321,7 +320,7 @@ See :ref:`Internal Refactoring<whatsnew_0130.refactoring>`
321
320
- ``TimeSeries `` is now an alias for ``Series ``. the property ``is_time_series ``
322
321
can be used to distinguish (if desired)
323
322
324
- - Refactor of Sparse objects to use BlockManager
323
+ - Refactor of Sparse objects to use BlockManager
325
324
326
325
- Created a new block type in internals, ``SparseBlock ``, which can hold multi-dtypes
327
326
and is non-consolidatable. ``SparseSeries `` and ``SparseDataFrame `` now inherit
@@ -335,32 +334,32 @@ See :ref:`Internal Refactoring<whatsnew_0130.refactoring>`
335
334
- enable setitem on ``SparseSeries `` for boolean/integer/slices
336
335
- ``SparsePanels `` implementation is unchanged (e.g. not using BlockManager, needs work)
337
336
338
- - added ``ftypes `` method to Series/DataFame, similar to ``dtypes ``, but indicates
339
- if the underlying is sparse/dense (as well as the dtype)
340
- - All ``NDFrame `` objects now have a ``_prop_attributes ``, which can be used to indcated various
341
- values to propogate to a new object from an existing (e.g. name in ``Series `` will follow
342
- more automatically now)
343
- - Internal type checking is now done via a suite of generated classes, allowing ``isinstance(value, klass) ``
344
- without having to directly import the klass, courtesy of @jtratner
345
- - Bug in Series update where the parent frame is not updating its cache based on
346
- changes (:issue: `4080 `) or types (:issue: `3217 `), fillna (:issue: `3386 `)
347
- - Indexing with dtype conversions fixed (:issue: `4463 `, :issue: `4204 `)
348
- - Refactor ``Series.reindex `` to core/generic.py (:issue: `4604 `, :issue: `4618 `), allow ``method= `` in reindexing
349
- on a Series to work
350
- - ``Series.copy `` no longer accepts the ``order `` parameter and is now consistent with ``NDFrame `` copy
351
- - Refactor ``rename `` methods to core/generic.py; fixes ``Series.rename `` for (:issue: `4605 `), and adds ``rename ``
352
- with the same signature for ``Panel ``
353
- - Series (for index) / Panel (for items) now as attribute access to its elements (:issue: `1903 `)
354
- - Refactor ``clip `` methods to core/generic.py (:issue: `4798 `)
355
- - Refactor of ``_get_numeric_data/_get_bool_data `` to core/generic.py, allowing Series/Panel functionaility
356
- - Refactor of Series arithmetic with time-like objects (datetime/timedelta/time
357
- etc.) into a separate, cleaned up wrapper class. (:issue: `4613 `)
358
- - Complex compat for ``Series `` with ``ndarray ``. (:issue: `4819 `)
359
- - Removed unnecessary ``rwproperty `` from codebase in favor of builtin property. (:issue: `4843 `)
360
- - Refactor object level numeric methods (mean/sum/min/max...) from object level modules to
361
- ``core/generic.py``(:issue:`4435`).
362
- - Refactor cum objects to core/generic.py (:issue:`4435`), note that these have a more numpy-like
363
- function signature.
337
+ - added ``ftypes `` method to Series/DataFame, similar to ``dtypes ``, but indicates
338
+ if the underlying is sparse/dense (as well as the dtype)
339
+ - All ``NDFrame `` objects now have a ``_prop_attributes ``, which can be used to indcated various
340
+ values to propogate to a new object from an existing (e.g. name in ``Series `` will follow
341
+ more automatically now)
342
+ - Internal type checking is now done via a suite of generated classes, allowing ``isinstance(value, klass) ``
343
+ without having to directly import the klass, courtesy of @jtratner
344
+ - Bug in Series update where the parent frame is not updating its cache based on
345
+ changes (:issue: `4080 `) or types (:issue: `3217 `), fillna (:issue: `3386 `)
346
+ - Indexing with dtype conversions fixed (:issue: `4463 `, :issue: `4204 `)
347
+ - Refactor ``Series.reindex `` to core/generic.py (:issue: `4604 `, :issue: `4618 `), allow ``method= `` in reindexing
348
+ on a Series to work
349
+ - ``Series.copy `` no longer accepts the ``order `` parameter and is now consistent with ``NDFrame `` copy
350
+ - Refactor ``rename `` methods to core/generic.py; fixes ``Series.rename `` for (:issue: `4605 `), and adds ``rename ``
351
+ with the same signature for ``Panel ``
352
+ - Series (for index) / Panel (for items) now as attribute access to its elements (:issue: `1903 `)
353
+ - Refactor ``clip `` methods to core/generic.py (:issue: `4798 `)
354
+ - Refactor of ``_get_numeric_data/_get_bool_data `` to core/generic.py, allowing Series/Panel functionaility
355
+ - Refactor of Series arithmetic with time-like objects (datetime/timedelta/time
356
+ etc.) into a separate, cleaned up wrapper class. (:issue: `4613 `)
357
+ - Complex compat for ``Series `` with ``ndarray ``. (:issue: `4819 `)
358
+ - Removed unnecessary ``rwproperty `` from codebase in favor of builtin property. (:issue: `4843 `)
359
+ - Refactor object level numeric methods (mean/sum/min/max...) from object level modules to
360
+ ``core/generic.py `` (:issue: `4435 `).
361
+ - Refactor cum objects to core/generic.py (:issue: `4435 `), note that these have a more numpy-like
362
+ function signature.
364
363
365
364
.. _release.bug_fixes-0.13.0 :
366
365
0 commit comments