Skip to content

Commit e794345

Browse files
Merge pull request pandas-dev#9689 from jorisvandenbossche/whatsnew16
DOC: further clean-up whatsnew file
2 parents 5ebf521 + 2bb1edc commit e794345

File tree

2 files changed

+54
-41
lines changed

2 files changed

+54
-41
lines changed

doc/source/release.rst

+6
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ Highlights include:
6060
- Backwards incompatible change to ``Timedelta`` to conform the ``.seconds`` attribute with ``datetime.timedelta``, see :ref:`here <whatsnew_0160.api_breaking.timedelta>`
6161
- Changes to the ``.loc`` slicing API to conform with the behavior of ``.ix`` see :ref:`here <whatsnew_0160.api_breaking.indexing>`
6262
- Changes to the default for ordering in the ``Categorical`` constructor, see :ref:`here <whatsnew_0160.api_breaking.categorical>`
63+
- The ``pandas.tools.rplot``, ``pandas.sandbox.qtpandas`` and ``pandas.rpy``
64+
modules are deprecated. We refer users to external packages like
65+
`seaborn <http://stanford.edu/~mwaskom/software/seaborn/>`_,
66+
`pandas-qt <https://github.com/datalyze-solutions/pandas-qt>`_ and
67+
`rpy2 <http://rpy.sourceforge.net/>`_ for similar or equivalent
68+
functionality, see :ref:`here <whatsnew_0160.deprecations>`
6369

6470
See the :ref:`v0.16.0 Whatsnew <whatsnew_0160>` overview or the issue tracker on GitHub for an extensive list
6571
of all API changes, enhancements and bugs that have been fixed in 0.16.0.

doc/source/whatsnew/v0.16.0.txt

+48-41
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ Highlights include:
1515
- Changes to the ``.loc`` slicing API to conform with the behavior of ``.ix`` see :ref:`here <whatsnew_0160.api_breaking.indexing>`
1616
- Changes to the default for ordering in the ``Categorical`` constructor, see :ref:`here <whatsnew_0160.api_breaking.categorical>`
1717
- Enhancement to the ``.str`` accessor to make string operations easier, see :ref:`here <whatsnew_0160.enhancements.string>`
18+
- The ``pandas.tools.rplot``, ``pandas.sandbox.qtpandas`` and ``pandas.rpy``
19+
modules are deprecated. We refer users to external packages like
20+
`seaborn <http://stanford.edu/~mwaskom/software/seaborn/>`_,
21+
`pandas-qt <https://github.com/datalyze-solutions/pandas-qt>`_ and
22+
`rpy2 <http://rpy.sourceforge.net/>`_ for similar or equivalent
23+
functionality, see :ref:`here <whatsnew_0160.deprecations>`
1824

1925
Check the :ref:`API Changes <whatsnew_0160.api>` and :ref:`deprecations <whatsnew_0160.deprecations>` before updating.
2026

@@ -129,37 +135,35 @@ String Methods Enhancements
129135

130136
- Following new methods are accesible via ``.str`` accessor to apply the function to each values. This is intended to make it more consistent with standard methods on strings. (:issue:`9282`, :issue:`9352`, :issue:`9386`, :issue:`9387`, :issue:`9439`)
131137

132-
============= ============= ============= =============== ===============
133-
.. .. Methods .. ..
134-
============= ============= ============= =============== ===============
135-
``isalnum()`` ``isalpha()`` ``isdigit()`` ``isdigit()`` ``isspace()``
136-
``islower()`` ``isupper()`` ``istitle()`` ``isnumeric()`` ``isdecimal()``
137-
``find()`` ``rfind()`` ``ljust()`` ``rjust()`` ``zfill()``
138-
============= ============= ============= =============== ===============
138+
============= ============= ============= =============== ===============
139+
.. .. Methods .. ..
140+
============= ============= ============= =============== ===============
141+
``isalnum()`` ``isalpha()`` ``isdigit()`` ``isdigit()`` ``isspace()``
142+
``islower()`` ``isupper()`` ``istitle()`` ``isnumeric()`` ``isdecimal()``
143+
``find()`` ``rfind()`` ``ljust()`` ``rjust()`` ``zfill()``
144+
============= ============= ============= =============== ===============
139145

140-
.. ipython:: python
141-
142-
s = Series(['abcd', '3456', 'EFGH'])
143-
s.str.isalpha()
144-
s.str.find('ab')
146+
.. ipython:: python
145147

148+
s = Series(['abcd', '3456', 'EFGH'])
149+
s.str.isalpha()
150+
s.str.find('ab')
146151

147152
- :meth:`Series.str.pad` and :meth:`Series.str.center` now accept ``fillchar`` option to specify filling character (:issue:`9352`)
148153

149-
.. ipython:: python
150-
151-
s = Series(['12', '300', '25'])
152-
s.str.pad(5, fillchar='_')
154+
.. ipython:: python
153155

156+
s = Series(['12', '300', '25'])
157+
s.str.pad(5, fillchar='_')
154158

155159
- Added :meth:`Series.str.slice_replace`, which previously raised ``NotImplementedError`` (:issue:`8888`)
156160

157-
.. ipython:: python
161+
.. ipython:: python
158162

159-
s = Series(['ABCD', 'EFGH', 'IJK'])
160-
s.str.slice_replace(1, 3, 'X')
161-
# replaced with empty char
162-
s.str.slice_replace(0, 1)
163+
s = Series(['ABCD', 'EFGH', 'IJK'])
164+
s.str.slice_replace(1, 3, 'X')
165+
# replaced with empty char
166+
s.str.slice_replace(0, 1)
163167

164168
.. _whatsnew_0160.enhancements.other:
165169

@@ -175,25 +179,25 @@ Other enhancements
175179

176180
This method is also exposed by the lower level ``Index.get_indexer`` and ``Index.get_loc`` methods.
177181

178-
- Allow Stata files to be read incrementally with an iterator; support for long strings in Stata files. See the docs :ref:`here<io.stata_reader>`. (issue:`9493`:)
182+
- The ``read_excel()`` function's :ref:`sheetname <_io.specifying_sheets>` argument now accepts a list and ``None``, to get multiple or all sheets respectively. If more than one sheet is specified, a dictionary is returned. (:issue:`9450`)
183+
184+
.. code-block:: python
185+
186+
# Returns the 1st and 4th sheet, as a dictionary of DataFrames.
187+
pd.read_excel('path_to_file.xls',sheetname=['Sheet1',3])
188+
189+
190+
- Allow Stata files to be read incrementally with an iterator; support for long strings in Stata files. See the docs :ref:`here<io.stata_reader>` (:issue:`9493`:).
179191
- Paths beginning with ~ will now be expanded to begin with the user's home directory (:issue:`9066`)
180192
- Added time interval selection in ``get_data_yahoo`` (:issue:`9071`)
181193
- Added ``Timestamp.to_datetime64()`` to complement ``Timedelta.to_timedelta64()`` (:issue:`9255`)
182194
- ``tseries.frequencies.to_offset()`` now accepts ``Timedelta`` as input (:issue:`9064`)
183195
- Lag parameter was added to the autocorrelation method of ``Series``, defaults to lag-1 autocorrelation (:issue:`9192`)
184196
- ``Timedelta`` will now accept ``nanoseconds`` keyword in constructor (:issue:`9273`)
185197
- SQL code now safely escapes table and column names (:issue:`8986`)
186-
187198
- Added auto-complete for ``Series.str.<tab>``, ``Series.dt.<tab>`` and ``Series.cat.<tab>`` (:issue:`9322`)
188199
- ``Index.get_indexer`` now supports ``method='pad'`` and ``method='backfill'`` even for any target array, not just monotonic targets. These methods also work for monotonic decreasing as well as monotonic increasing indexes (:issue:`9258`).
189200
- ``Index.asof`` now works on all index types (:issue:`9258`).
190-
- The ``read_excel()`` function's :ref:`sheetname <_io.specifying_sheets>` argument now accepts a list and ``None``, to get multiple or all sheets respectively. If more than one sheet is specified, a dictionary is returned. (:issue:`9450`)
191-
192-
.. code-block:: python
193-
194-
# Returns the 1st and 4th sheet, as a dictionary of DataFrames.
195-
pd.read_excel('path_to_file.xls',sheetname=['Sheet1',3])
196-
197201
- A ``verbose`` argument has been augmented in ``io.read_excel()``, defaults to False. Set to True to print sheet names as they are parsed. (:issue:`9450`)
198202
- Added ``days_in_month`` (compatibility alias ``daysinmonth``) property to ``Timestamp``, ``DatetimeIndex``, ``Period``, ``PeriodIndex``, and ``Series.dt`` (:issue:`9572`)
199203
- Added ``decimal`` option in ``to_csv`` to provide formatting for non-'.' decimal separators (:issue:`781`)
@@ -486,15 +490,6 @@ Other API Changes
486490

487491
To reproduce the old behavior, simply add more precision to the label (e.g., use ``2000-02-01`` instead of ``2000-02``).
488492

489-
- A Spurious ``SettingWithCopy`` Warning was generated when setting a new item in a frame in some cases (:issue:`8730`)
490-
491-
The following would previously report a ``SettingWithCopy`` Warning.
492-
493-
.. ipython:: python
494-
495-
df1 = DataFrame({'x': Series(['a','b','c']), 'y': Series(['d','e','f'])})
496-
df2 = df1[['x']]
497-
df2['y'] = ['g', 'h', 'i']
498493

499494
.. _whatsnew_0160.deprecations:
500495

@@ -505,9 +500,8 @@ Deprecations
505500
in a future version. We refer to external packages like
506501
`seaborn <http://stanford.edu/~mwaskom/software/seaborn/>`_ for similar
507502
but more refined functionality (:issue:`3445`).
508-
509503
The documentation includes some examples how to convert your existing code
510-
using ``rplot`` to seaborn: - :ref:`rplot docs <rplot>`
504+
using ``rplot`` to seaborn: :ref:`rplot docs <rplot>`.
511505

512506
- The ``pandas.sandbox.qtpandas`` interface is deprecated and will be removed in a future version.
513507
We refer users to the external package `pandas-qt <https://github.com/datalyze-solutions/pandas-qt>`_. (:issue:`9615`)
@@ -610,6 +604,9 @@ Bug Fixes
610604
- Fixed mising numeric_only option for ``DataFrame.std/var/sem`` (:issue:`9201`)
611605
- Support constructing ``Panel`` or ``Panel4D`` with scalar data (:issue:`8285`)
612606
- ``Series`` text representation disconnected from `max_rows`/`max_columns` (:issue:`7508`).
607+
608+
\
609+
613610
- ``Series`` number formatting inconsistent when truncated (:issue:`8532`).
614611

615612
Previous Behavior
@@ -645,3 +642,13 @@ Bug Fixes
645642
128 1.0000
646643
129 1.0000
647644
dtype: float64
645+
646+
- A Spurious ``SettingWithCopy`` Warning was generated when setting a new item in a frame in some cases (:issue:`8730`)
647+
648+
The following would previously report a ``SettingWithCopy`` Warning.
649+
650+
.. ipython:: python
651+
652+
df1 = DataFrame({'x': Series(['a','b','c']), 'y': Series(['d','e','f'])})
653+
df2 = df1[['x']]
654+
df2['y'] = ['g', 'h', 'i']

0 commit comments

Comments
 (0)