Skip to content

Commit d6241d8

Browse files
committed
DOC: release/v0.14.0.txt edits
1 parent a189d5d commit d6241d8

File tree

2 files changed

+16
-20
lines changed

2 files changed

+16
-20
lines changed

doc/source/release.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,6 @@ API Changes
176176
- ``.quantile`` on a ``datetime[ns]`` series now returns ``Timestamp`` instead
177177
of ``np.datetime64`` objects (:issue:`6810`)
178178

179-
- Remove the ``copy`` keyword from ``DataFrame.xs``,``Panel.major_xs``,``Panel.minor_xs``. A view will be
180-
returned if possible, otherwise a copy will be made. Previously the user could think that ``copy=False`` would
181-
ALWAYS return a view. (:issue:`6894`)
182-
183179
Deprecations
184180
~~~~~~~~~~~~
185181

@@ -208,6 +204,10 @@ Deprecations
208204

209205
- The ``order`` keyword argument of :func:`factorize` will be removed. (:issue:`6926`).
210206

207+
- Remove the ``copy`` keyword from :meth:`DataFrame.xs`, :meth:`Panel.major_xs`, :meth:`Panel.minor_xs`. A view will be
208+
returned if possible, otherwise a copy will be made. Previously the user could think that ``copy=False`` would
209+
ALWAYS return a view. (:issue:`6894`)
210+
211211
Prior Version Deprecations/Changes
212212
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
213213

doc/source/v0.14.0.txt

+12-16
Original file line numberDiff line numberDiff line change
@@ -151,27 +151,23 @@ API changes
151151
.. ipython:: python
152152
:suppress:
153153

154+
np.random.seed(1234)
154155
from itertools import product
155156
tuples = list(product(('a', 'b'), ('c', 'd')))
156157
mi = MultiIndex.from_tuples(tuples)
157158
df_multi = DataFrame(np.random.randn(4, 2), index=mi)
158-
tuple_ind = pd.Index(tuples)
159-
160-
.. ipython:: python
161-
159+
tuple_ind = pd.Index(tuples,tupleize_cols=False)
162160
df_multi.index
163161

164-
@suppress
165-
df_multi.index = tuple_ind
162+
.. ipython:: python
166163

167164
# Old behavior, casted MultiIndex to an Index
168-
df_multi.set_index(df_multi.index)
169-
170-
@suppress
171-
df_multi.index = mi
165+
tuple_ind
166+
df_multi.set_index(tuple_ind)
172167

173168
# New behavior
174-
df_multi.set_index(df_multi.index)
169+
mi
170+
df_multi.set_index(mi)
175171

176172
This also applies when passing multiple indices to ``set_index``:
177173

@@ -214,10 +210,6 @@ API changes
214210
(and numpy defaults)
215211
- add ``inplace`` keyword to ``Series.order/sort`` to make them inverses (:issue:`6859`)
216212

217-
- Remove the ``copy`` keyword from ``DataFrame.xs``,``Panel.major_xs``,``Panel.minor_xs``. A view will be
218-
returned if possible, otherwise a copy will be made. Previously the user could think that ``copy=False`` would
219-
ALWAYS return a view. (:issue:`6894`)
220-
221213
.. _whatsnew_0140.sql:
222214

223215
SQL
@@ -422,6 +414,10 @@ Deprecations
422414
old argument ``lags`` is used by name. (:issue:`6910`)
423415
- The ``order`` keyword argument of :func:`factorize` will be removed. (:issue:`6926`).
424416

417+
- Remove the ``copy`` keyword from :meth:`DataFrame.xs`, :meth:`Panel.major_xs`, :meth:`Panel.minor_xs`. A view will be
418+
returned if possible, otherwise a copy will be made. Previously the user could think that ``copy=False`` would
419+
ALWAYS return a view. (:issue:`6894`)
420+
425421
.. _whatsnew_0140.enhancements:
426422

427423
Enhancements
@@ -483,7 +479,7 @@ Enhancements
483479
- Implemented ``Panel.pct_change`` (:issue:`6904`)
484480
- Added ``how`` option to rolling-moment functions to dictate how to handle resampling; :func:``rolling_max`` defaults to max,
485481
:func:``rolling_min`` defaults to min, and all others default to mean (:issue:`6297`)
486-
- ``CustomBuisnessMonthBegin`` and ``CustomBusinessMonthEnd`` are now available (:issue:`6866`)
482+
- ``CustomBuisnessMonthBegin`` and ``CustomBusinessMonthEnd`` are now available (:issue:`6866`)
487483

488484
Performance
489485
~~~~~~~~~~~

0 commit comments

Comments
 (0)