Skip to content

Commit 25d344e

Browse files
Merge pull request #11661 from jorisvandenbossche/doc-whatsnew2
DOC: whatsnew edits
2 parents a3fd834 + d9c53b4 commit 25d344e

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

doc/source/basics.rst

+1
Original file line numberDiff line numberDiff line change
@@ -1725,6 +1725,7 @@ pass ``convert_numeric=True``. This will force strings and numbers alike to be n
17251725
they will be set to ``np.nan``.
17261726

17271727
.. ipython:: python
1728+
:okwarning:
17281729
17291730
df3['D'] = '1.'
17301731
df3['E'] = '1'

doc/source/computation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ sugar for applying the moving window operator to all of the DataFrame's columns:
267267

268268
.. ipython:: python
269269
:suppress:
270+
270271
plt.close('all')
271272
272273
.. ipython:: python
@@ -541,7 +542,7 @@ which gives
541542

542543
.. math::
543544
544-
y_t = \frac{x_t + (1 - \alpha)x_{t-1} + (1 - \alpha)^2 x_{t-2} + ...
545+
y_t = \frac{x_t + (1 - \alpha)x_{t-1} + (1 - \alpha)^2 x_{t-2} + ...
545546
+ (1 - \alpha)^t x_{0}}{1 + (1 - \alpha) + (1 - \alpha)^2 + ...
546547
+ (1 - \alpha)^t}
547548
@@ -620,7 +621,6 @@ Here is an example for a univariate time series:
620621

621622
.. ipython:: python
622623
623-
plt.close('all')
624624
ts.plot(style='k--')
625625
626626
@savefig ewma_ex.png

doc/source/whatsnew/v0.17.1.txt

+12-12
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Highlights include:
1717

1818
- Support for Conditional HTML Formatting, see :ref:`here <whatsnew_0171.style>`
1919
- Releasing the GIL on the csv reader & other ops, see :ref:`here <whatsnew_0171.performance>`
20-
- Regression in ``DataFrame.drop_duplicates`` from 0.16.2, causing incorrect results on integer values (:issue:`11376`)
20+
- Fixed regression in ``DataFrame.drop_duplicates`` from 0.16.2, causing incorrect results on integer values (:issue:`11376`)
2121

2222
.. contents:: What's new in v0.17.1
2323
:local:
@@ -67,11 +67,11 @@ Enhancements
6767

6868
- ``DatetimeIndex`` now supports conversion to strings with ``astype(str)`` (:issue:`10442`)
6969
- Support for ``compression`` (gzip/bz2) in :meth:`pandas.DataFrame.to_csv` (:issue:`7615`)
70-
- Improve the error message in :func:`pandas.io.gbq.to_gbq` when a streaming insert fails (:issue:`11285`)
7170
- ``pd.read_*`` functions can now also accept :class:`python:pathlib.Path`, or :class:`py:py._path.local.LocalPath`
7271
objects for the ``filepath_or_buffer`` argument. (:issue:`11033`)
72+
- The ``DataFrame`` and ``Series`` functions ``.to_csv()``, ``.to_html()`` and ``.to_latex()`` can now handle paths beginning with tildes (e.g. ``~/Documents/``) (:issue:`11438`)
7373
- ``DataFrame`` now uses the fields of a ``namedtuple`` as columns, if columns are not supplied (:issue:`11181`)
74-
- Improve the error message displayed in :func:`pandas.io.gbq.to_gbq` when the DataFrame does not match the schema of the destination table (:issue:`11359`)
74+
- ``DataFrame.itertuples()`` now returns ``namedtuple`` objects, when possible. (:issue:`11269`, :issue:`11625`)
7575
- Added ``axvlines_kwds`` to parallel coordinates plot (:issue:`10709`)
7676
- Option to ``.info()`` and ``.memory_usage()`` to provide for deep introspection of memory consumption. Note that this can be expensive to compute and therefore is an optional parameter. (:issue:`11595`)
7777

@@ -106,23 +106,20 @@ Enhancements
106106

107107
- ``pivot_table`` now has a ``margins_name`` argument so you can use something other than the default of 'All' (:issue:`3335`)
108108
- Implement export of ``datetime64[ns, tz]`` dtypes with a fixed HDF5 store (:issue:`11411`)
109-
- The ``DataFrame`` and ``Series`` functions ``.to_csv()``, ``.to_html()`` and ``.to_latex()`` can now handle paths beginning with tildes (e.g. ``~/Documents/``). (:issue:`11438`)
109+
- Pretty printing sets (e.g. in DataFrame cells) now uses set literal syntax (``{x, y}``) instead of
110+
Legacy Python syntax (``set([x, y])``) (:issue:`11215`)
111+
- Improve the error message in :func:`pandas.io.gbq.to_gbq` when a streaming insert fails (:issue:`11285`)
112+
and when the DataFrame does not match the schema of the destination table (:issue:`11359`)
110113

111114
.. _whatsnew_0171.api:
112115

113116
API changes
114117
~~~~~~~~~~~
115118

116-
- raise ``NotImplementedError`` in ``Index.shift`` for non-supported index types (:issue:`8083`)
117-
- min and max reductions on ``datetime64`` and ``timedelta64`` dtyped series now
119+
- raise ``NotImplementedError`` in ``Index.shift`` for non-supported index types (:issue:`8038`)
120+
- ``min`` and ``max`` reductions on ``datetime64`` and ``timedelta64`` dtyped series now
118121
result in ``NaT`` and not ``nan`` (:issue:`11245`).
119-
- Regression from 0.16.2 for output formatting of long floats/nan, restored in (:issue:`11302`)
120-
- Prettyprinting sets (e.g. in DataFrame cells) now uses set literal syntax (``{x, y}``) instead of
121-
Legacy Python syntax (``set([x, y])``) (:issue:`11215`)
122122
- Indexing with a null key will raise a ``TypeError``, instead of a ``ValueError`` (:issue:`11356`)
123-
- ``Series.sort_index()`` now correctly handles the ``inplace`` option (:issue:`11402`)
124-
- ``SparseArray.__iter__()`` now does not cause ``PendingDeprecationWarning`` in Python 3.5 (:issue:`11622`)
125-
- ``DataFrame.itertuples()`` now returns ``namedtuple`` objects, when possible. (:issue:`11269`, :issue:`11625`)
126123
- ``Series.ptp`` will now ignore missing values by default (:issue:`11163`)
127124

128125
.. _whatsnew_0171.deprecations:
@@ -155,6 +152,9 @@ Performance Improvements
155152
Bug Fixes
156153
~~~~~~~~~
157154

155+
- ``SparseArray.__iter__()`` now does not cause ``PendingDeprecationWarning`` in Python 3.5 (:issue:`11622`)
156+
- Regression from 0.16.2 for output formatting of long floats/nan, restored in (:issue:`11302`)
157+
- ``Series.sort_index()`` now correctly handles the ``inplace`` option (:issue:`11402`)
158158
- Incorrectly distributed .c file in the build on ``PyPi`` when reading a csv of floats and passing ``na_values=<a scalar>`` would show an exception (:issue:`11374`)
159159
- Bug in ``.to_latex()`` output broken when the index has a name (:issue:`10660`)
160160
- Bug in ``HDFStore.append`` with strings whose encoded length exceded the max unencoded length (:issue:`11234`)

0 commit comments

Comments
 (0)