Skip to content

Commit b296b9e

Browse files
committed
DOC: v0.15.0 et all updates
1 parent adcdb5b commit b296b9e

File tree

3 files changed

+61
-47
lines changed

3 files changed

+61
-47
lines changed

doc/source/computation.rst

+9-9
Original file line numberDiff line numberDiff line change
@@ -336,18 +336,18 @@ This keyword is available in other rolling functions as well.
336336
337337
rolling_mean(ser, 5, center=True)
338338
339-
.. _stats.moments.normalization
339+
.. _stats.moments.normalization:
340340

341341
.. note::
342342

343-
In rolling sum mode (``mean=False``) there is no normalization done to the
344-
weights. Passing custom weights of ``[1, 1, 1]`` will yield a different
345-
result than passing weights of ``[2, 2, 2]``, for example. When passing a
346-
``win_type`` instead of explicitly specifying the weights, the weights are
347-
already normalized so that the largest weight is 1.
343+
In rolling sum mode (``mean=False``) there is no normalization done to the
344+
weights. Passing custom weights of ``[1, 1, 1]`` will yield a different
345+
result than passing weights of ``[2, 2, 2]``, for example. When passing a
346+
``win_type`` instead of explicitly specifying the weights, the weights are
347+
already normalized so that the largest weight is 1.
348348

349-
In contrast, the nature of the rolling mean calculation (``mean=True``)is
350-
such that the weights are normalized with respect to each other. Weights
349+
In contrast, the nature of the rolling mean calculation (``mean=True``)is
350+
such that the weights are normalized with respect to each other. Weights
351351
of ``[1, 1, 1]`` and ``[2, 2, 2]`` yield the same result.
352352

353353
.. _stats.moments.binary:
@@ -512,7 +512,7 @@ functions are provided:
512512
.. csv-table::
513513
:header: "Function", "Description"
514514
:widths: 20, 80
515-
515+
516516
``ewma``, EW moving average
517517
``ewmvar``, EW moving variance
518518
``ewmstd``, EW moving standard deviation

doc/source/release.rst

+12-1
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,24 @@ analysis / manipulation tool available in any language.
4848
pandas 0.15.0
4949
-------------
5050

51-
**Release date:** (???)
51+
**Release date:** (October ??, 2014)
5252

5353
This is a major release from 0.14.1 and includes a number of API changes, several new features, enhancements, and
5454
performance improvements along with a large number of bug fixes.
5555

5656
Highlights include:
5757

58+
- Drop support for numpy < 1.7.0 (:issue:`7711`)
59+
- The ``Categorical`` type was integrated as a first-class pandas type, see :ref:`here <whatsnew_0150.cat>`
60+
- New scalar type ``Timedelta``, and a new index type ``TimedeltaIndex``, see :ref:`here <whatsnew_0150.timedeltaindex>`
61+
- New datetimelike properties accessor ``.dt`` for Series, see :ref:`Datetimelike Properties <whatsnew_0150.dt>`
62+
- Split indexing documentation into :ref:`Indexing and Selecting Data <indexing>` and :ref:`MultiIndex / Advanced Indexing <advanced>`
63+
- ``read_csv`` will now by default ignore blank lines when parsing, see :ref:`here <whatsnew_0150.blanklines>`
64+
- API change in using Indexes in set operations, see :ref:`here <whatsnew_0150.index_set_ops>`
65+
- Internal refactoring of the ``Index`` class to no longer sub-class ``ndarray``, see :ref:`Internal Refactoring <whatsnew_0150.refactoring>`
66+
- dropping support for ``PyTables`` less than version 3.0.0, and ``numexpr`` less than version 2.1 (:issue:`7990`)
67+
- Refactor ``Index`` to no longer subclass ``ndarray`` See :ref:`Internal Refactoring <whatsnew_0150.refactoring>`
68+
5869
See the :ref:`v0.15.0 Whatsnew <whatsnew_0140>` overview or the issue tracker on GitHub for an extensive list
5970
of all API changes, enhancements and bugs that have been fixed in 0.15.0.
6071

doc/source/v0.15.0.txt

+40-37
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _whatsnew_0150:
22

3-
v0.15.0 (???)
4-
-------------
3+
v0.15.0 (October ??, 2014)
4+
--------------------------
55

66
This is a major release from 0.14.1 and includes a small number of API changes, several new features,
77
enhancements, and performance improvements along with a large number of bug fixes. We recommend that all
@@ -11,7 +11,7 @@ users upgrade to this version.
1111

1212
pandas >= 0.15.0 will no longer support compatibility with NumPy versions <
1313
1.7.0. If you want to use the latest versions of pandas, please upgrade to
14-
NumPy >= 1.7.0.
14+
NumPy >= 1.7.0 (:issue:`7711`)
1515

1616
- Highlights include:
1717

@@ -45,7 +45,7 @@ users upgrade to this version.
4545
The refactorings in :class:`~pandas.Categorical` changed the two argument constructor from
4646
"codes/labels and levels" to "values and levels". This can lead to subtle bugs. If you use
4747
:class:`~pandas.Categorical` directly, please audit your code before updating to this pandas
48-
version and change it to use the :meth:`~pandas.Categorical.from_codes` constructor.
48+
version and change it to use the :meth:`~pandas.Categorical.from_codes` constructor. See more on ``Categorical`` :ref:`here <whatsnew_0150.cat>`
4949

5050
.. _whatsnew_0150.api:
5151

@@ -194,7 +194,9 @@ API changes
194194
.. ipython:: python
195195

196196
p = Panel(np.arange(2*3*4).reshape(2,3,4),
197-
items=['ItemA','ItemB'],major_axis=[1,2,3],minor_axis=['A','B','C','D'])
197+
items=['ItemA','ItemB'],
198+
major_axis=[1,2,3],
199+
minor_axis=['A','B','C','D'])
198200
p
199201

200202
The following would raise ``KeyError`` prior to 0.15.0:
@@ -208,8 +210,10 @@ API changes
208210
.. ipython:: python
209211
:okexcept:
210212

211-
s = Series(np.arange(3,dtype='int64'),index=MultiIndex.from_product([['A'],['foo','bar','baz']],
212-
names=['one','two'])).sortlevel()
213+
s = Series(np.arange(3,dtype='int64'),
214+
index=MultiIndex.from_product([['A'],['foo','bar','baz']],
215+
names=['one','two'])
216+
).sortlevel()
213217
s
214218
s.loc[['D']]
215219

@@ -226,7 +230,7 @@ API changes
226230

227231
Previously, assigning to ``None`` in numeric containers changed the
228232
dtype to object (or errored, depending on the call). It now uses
229-
NaN:
233+
``NaN``:
230234

231235
.. ipython:: python
232236

@@ -236,16 +240,16 @@ API changes
236240

237241
``NaT`` is now used similarly for datetime containers.
238242

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).
241245

242246
.. ipython:: python
243247

244248
s = Series(["a", "b", "c"])
245249
s.loc[0] = None
246250
s
247251

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>`.
249253

250254
- Previously an enlargement with a mixed-dtype frame would act unlike ``.append`` which will preserve dtypes (related :issue:`2578`, :issue:`8176`):
251255

@@ -262,30 +266,10 @@ API changes
262266

263267
- ``Series.to_csv()`` now returns a string when ``path=None``, matching the behaviour of ``DataFrame.to_csv()`` (:issue:`8215`).
264268

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`)
270-
271-
.. code-block:: python
272-
273-
# +
274-
Index(['a','b','c']) + Index(['b','c','d'])
275-
276-
# should be replaced by
277-
Index(['a','b','c']).union(Index(['b','c','d']))
278-
279-
.. code-block:: python
280-
281-
# -
282-
Index(['a','b','c']) - Index(['b','c','d'])
283-
284-
# should be replaced by
285-
Index(['a','b','c']).difference(Index(['b','c','d']))
269+
- ``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`).
286270

287271
- ``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`)
289273

290274

291275

@@ -396,8 +380,7 @@ Rolling/Expanding Moments API changes
396380

397381
- :func:`rolling_window` now normalizes the weights properly in rolling mean mode (`mean=True`) so that
398382
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`)
401384

402385
.. ipython:: python
403386

@@ -687,7 +670,7 @@ You can select with partial string selections
687670
s['1 day 00:00:02']
688671
s['1 day':'1 day 00:00:02']
689672

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:
691674

692675
.. ipython:: python
693676

@@ -720,6 +703,26 @@ Deprecations
720703
Replace ``infer_dst=True`` with ``ambiguous='infer'`` for the same behavior (:issue:`7943`).
721704
See :ref:`the docs<timeseries.timezone_ambiguous>` for more details.
722705

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`)
709+
710+
.. code-block:: python
711+
712+
# +
713+
Index(['a','b','c']) + Index(['b','c','d'])
714+
715+
# should be replaced by
716+
Index(['a','b','c']).union(Index(['b','c','d']))
717+
718+
.. code-block:: python
719+
720+
# -
721+
Index(['a','b','c']) - Index(['b','c','d'])
722+
723+
# should be replaced by
724+
Index(['a','b','c']).difference(Index(['b','c','d']))
725+
723726
.. _whatsnew_0150.enhancements:
724727

725728
Enhancements
@@ -865,7 +868,7 @@ Bug Fixes
865868
- Bug in ``offsets.apply``, ``rollforward`` and ``rollback`` may reset nanosecond (:issue:`7697`)
866869
- Bug in ``offsets.apply``, ``rollforward`` and ``rollback`` may raise ``AttributeError`` if ``Timestamp`` has ``dateutil`` tzinfo (:issue:`7697`)
867870
- Bug in sorting a multi-index frame with a Float64Index (:issue:`8017`)
868-
871+
- Bug in inconsistent panel setitem with a rhs of a DataFrame for alignment (:issue:`7763`)
869872
- Bug in ``is_superperiod`` and ``is_subperiod`` cannot handle higher frequencies than ``S`` (:issue:`7760`, :issue:`7772`, :issue:`7803`)
870873
- Bug in 32-bit platforms with ``Series.shift`` (:issue:`8129`)
871874
- Bug in ``PeriodIndex.unique`` returns int64 ``np.ndarray`` (:issue:`7540`)

0 commit comments

Comments
 (0)