Skip to content

Commit 33516bb

Browse files
committed
DOC: minor release/v0.13 corrections
1 parent 16d03b7 commit 33516bb

File tree

4 files changed

+63
-56
lines changed

4 files changed

+63
-56
lines changed

doc/source/basics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ Methods like ``replace`` and ``findall`` take regular expressions, too:
992992
s3.str.replace('^.a|dog', 'XX-XX ', case=False)
993993
994994
The method ``match`` returns the groups in a regular expression in one tuple.
995-
Starting in pandas version 0.13, the method ``extract`` is available to
995+
Starting in pandas version 0.13.0, the method ``extract`` is available to
996996
accomplish this more conveniently.
997997

998998
Extracting a regular expression with one group returns a Series of strings.

doc/source/indexing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ wherever the element is in the sequence of values.
574574
.. ipython:: python
575575
576576
df = DataFrame({'vals': [1, 2, 3, 4], 'ids': ['a', 'b', 'f', 'n'],
577-
'ids2': ['a', 'n', 'c', 'n']})
577+
'ids2': ['a', 'n', 'c', 'n']})
578578
579579
values = ['a', 'b', 1, 3]
580580

doc/source/release.rst

Lines changed: 40 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ Experimental Features
7575
- ``pd.eval`` and friends now evaluate operations involving ``datetime64``
7676
objects in Python space because ``numexpr`` cannot handle ``NaT`` values
7777
(: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`)
8080

8181
Improvements to existing features
8282
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -136,8 +136,8 @@ Improvements to existing features
136136
faster than the default openpyxl xlsx writer and is equivalent in speed
137137
to the xlwt xls writer module. (:issue:`4542`)
138138
- 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
141141
- DataFrame constructor now accepts a numpy masked record array (:issue:`3478`),
142142
thanks @jnothman
143143
- ``__getitem__`` with ``tuple`` key (e.g., ``[:, 2]``) on ``Series``
@@ -165,7 +165,7 @@ API Changes
165165
~~~~~~~~~~~
166166

167167
- ``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`).
169169
- ``pandas`` now is Python 2/3 compatible without the need for 2to3 thanks to
170170
@jtratner. As a result, pandas now uses iterators more extensively. This
171171
also led to the introduction of substantive parts of the Benjamin
@@ -236,11 +236,10 @@ API Changes
236236
data - allowing metadata changes.
237237
- ``MultiIndex.astype()`` now only allows ``np.object_``-like dtypes and
238238
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`)
244243
- Infer and downcast dtype if ``downcast='infer'`` is passed to ``fillna/ffill/bfill`` (:issue:`4604`)
245244
- ``__nonzero__`` for all NDFrame objects, will now raise a ``ValueError``, this reverts back to (:issue:`1073`, :issue:`4633`)
246245
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
288287
and behaviors. Series formerly subclassed directly from ``ndarray``. (:issue:`4080`, :issue:`3862`, :issue:`816`)
289288
See :ref:`Internal Refactoring<whatsnew_0130.refactoring>`
290289

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
292291

293292
- added ``_setup_axes`` to created generic NDFrame structures
294293
- moved methods
@@ -304,15 +303,15 @@ See :ref:`Internal Refactoring<whatsnew_0130.refactoring>`
304303
- ``reindex,reindex_axis,take``
305304
- ``truncate`` (moved to become part of ``NDFrame``)
306305

307-
- These are API changes which make ``Panel`` more consistent with ``DataFrame``
306+
- These are API changes which make ``Panel`` more consistent with ``DataFrame``
308307

309308
- ``swapaxes`` on a ``Panel`` with the same axes specified now return a copy
310309
- support attribute access for setting
311310
- ``filter`` supports same api as original ``DataFrame`` filter
312311
- ``fillna`` refactored to ``core/generic.py``, while > 3ndim is ``NotImplemented``
313312

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.
316315

317316
- numpy functions that do not support the array interface will now
318317
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>`
321320
- ``TimeSeries`` is now an alias for ``Series``. the property ``is_time_series``
322321
can be used to distinguish (if desired)
323322

324-
- Refactor of Sparse objects to use BlockManager
323+
- Refactor of Sparse objects to use BlockManager
325324

326325
- Created a new block type in internals, ``SparseBlock``, which can hold multi-dtypes
327326
and is non-consolidatable. ``SparseSeries`` and ``SparseDataFrame`` now inherit
@@ -335,32 +334,32 @@ See :ref:`Internal Refactoring<whatsnew_0130.refactoring>`
335334
- enable setitem on ``SparseSeries`` for boolean/integer/slices
336335
- ``SparsePanels`` implementation is unchanged (e.g. not using BlockManager, needs work)
337336

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.
364363

365364
.. _release.bug_fixes-0.13.0:
366365

doc/source/v0.13.0.txt

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _whatsnew_0130:
22

3-
v0.13.0 (August ??, 2013)
4-
-------------------------
3+
v0.13.0 (October ??, 2013)
4+
--------------------------
55

66
This is a major release from 0.12.0 and includes several new features and
77
enhancements along with a large number of bug fixes.
@@ -419,24 +419,26 @@ Enhancements
419419

420420
Series(['a1', 'b2', 'c3']).str.extract('([ab])(\d)')
421421

422-
Elements that do not match return a row of ``NaN``s.
423-
Thus, a Series of messy strings can be "converted" into a
422+
Elements that do not match return a row of ``NaN``.
423+
Thus, a Series of messy strings can be *converted* into a
424424
like-indexed Series or DataFrame of cleaned-up or more useful strings,
425425
without necessitating ``get()`` to access tuples or ``re.match`` objects.
426426

427427
Named groups like
428428

429429
.. ipython:: python
430430

431-
Series(['a1', 'b2', 'c3']).str.match('(?P<letter>[ab])(?P<digit>\d)')
431+
Series(['a1', 'b2', 'c3']).str.match(
432+
'(?P<letter>[ab])(?P<digit>\d)')
432433

433-
and optional groups like
434+
and optional groups can also be used.
434435

435436
.. ipython:: python
436-
Series(['a1', 'b2', '3']).str.match('(?P<letter>[ab])?(?P<digit>\d)')
437437

438-
can also be used.
439-
- ``read_stata` now accepts Stata 13 format (:issue:`4291`)
438+
Series(['a1', 'b2', '3']).str.match(
439+
'(?P<letter>[ab])?(?P<digit>\d)')
440+
441+
- ``read_stata`` now accepts Stata 13 format (:issue:`4291`)
440442
- ``read_fwf`` now infers the column specifications from the first 100 rows of
441443
the file if the data has correctly separated and properly aligned columns
442444
using the delimiter provided to the function (:issue:`4488`).
@@ -451,27 +453,33 @@ Enhancements
451453
up to nanoseconds. Periods in the nanosecond range are now available.
452454

453455
.. ipython:: python
456+
454457
date_range('2013-01-01', periods=5, freq='5N')
455458

456459
or with frequency as offset
457460

458461
.. ipython:: python
462+
459463
date_range('2013-01-01', periods=5, freq=pd.offsets.Nano(5))
460464

461465
Timestamps can be modified in the nanosecond range
462466

463467
.. ipython:: python
468+
464469
t = Timestamp('20130101 09:01:02')
465470
t + pd.datetools.Nano(123)
466471

467-
- The ``isin`` method plays nicely with boolean indexing. To get the rows where each condition is met:
472+
- The ``isin`` method plays nicely with boolean indexing. To get the rows where any of the conditions are met:
468473

469474
.. ipython:: python
470475

471-
mask = df.isin({'A': [1, 2], 'B': ['e', 'f']})
472-
df[mask.all(1)]
476+
dfi = DataFrame({'A': [1, 2, 3, 4], 'B': ['a', 'b', 'f', 'n']})
477+
dfi
478+
mask = dfi.isin({'A': [1, 2], 'B': ['e', 'f']})
479+
mask
480+
dfi[mask.any(1)]
473481

474-
See the :ref:`documentation<indexing.basics.indexing_isin>` for more.
482+
:ref:`See the docs<indexing.basics.indexing_isin>` for more.
475483

476484
.. _whatsnew_0130.experimental:
477485

0 commit comments

Comments
 (0)