Skip to content

Commit f8632a6

Browse files
author
datajanko
committed
reverts v0.22 and fixes code blocks and typos in v0.23
1 parent 469ed4c commit f8632a6

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

doc/source/whatsnew/v0.22.0.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@ This is a major release from 0.21.1 and includes a number of API changes,
77
deprecations, new features, enhancements, and performance improvements along
88
with a large number of bug fixes. We recommend that all users upgrade to this
99
version.
10+
11+
.. _whatsnew_0220.api_breaking:
12+
13+
Backwards incompatible API changes
14+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

doc/source/whatsnew/v0.23.0.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ Current Behavior
125125
``.assign()`` accepts dependent arguments
126126
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127127

128-
The :func:`DataFrame.assign()` now accepts dependent kwargs. In earlier versions this throws a Keyerror exception anymore. (:issue: `14207)
128+
The :func:`DataFrame.assign()` now accepts dependent kwargs. (:issue: `14207)
129129

130-
Specifically, defining a new column inside assign may be referenced in the same assign statement if a callable is used. For example
130+
Specifically, defining a new column inside ``.assign()`` may be referenced in the same assign statement if a callable is used. For example
131131

132-
.. code-block:: ipython
132+
.. ipython:: python
133133

134134
In [3]: df = pd.DataFrame({'A': [1, 2, 3]})
135135

@@ -143,8 +143,10 @@ Specifically, defining a new column inside assign may be referenced in the same
143143
.. warning::
144144

145145
This may subtly change the behavior of your code when you're
146-
using ``assign`` to update an existing column. Previously, callables
147-
refering to other variables being updated would get the "old" values
146+
using ``.assign()`` to update an existing column. Previously, callables
147+
referring to other variables being updated would get the "old" values
148+
149+
Previous Behaviour:
148150

149151
.. code-block:: ipython
150152

@@ -157,9 +159,9 @@ refering to other variables being updated would get the "old" values
157159
1 3 -2
158160
2 4 -3
159161

160-
Now, callables will get the "new" value
162+
New Behaviour:
161163

162-
.. code-block:: ipython
164+
.. ipython:: python
163165

164166

165167
In [4]: df = pd.DataFrame({"A": [1, 2, 3]})

0 commit comments

Comments
 (0)