Skip to content

Commit 99aabee

Browse files
committed
What's new and doc
1 parent d69fa3b commit 99aabee

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

doc/source/indexing.rst

+8
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,14 @@ new column.
249249
If you are using the IPython environment, you may also use tab-completion to
250250
see these accessible attributes.
251251

252+
You can also assign a ``dict`` to a row of a ``DataFrame``:
253+
254+
.. ipython:: python
255+
256+
x = pd.DataFrame({'x': [1, 2, 3], 'y': [3, 4, 5]})
257+
x.iloc[1] = dict(x=9, y=99)
258+
x
259+
252260
Slicing ranges
253261
--------------
254262

doc/source/whatsnew/v0.16.1.txt

+2
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,5 @@ Bug Fixes
132132
- Bug in unequal comparisons between a ``Series`` of dtype `"category"` and a scalar (e.g. ``Series(Categorical(list("abc"), categories=list("cba"), ordered=True)) > "b"``, which wouldn't use the order of the categories but use the lexicographical order. (:issue:`9848`)
133133

134134
- Bug in unequal comparisons between categorical data and a scalar, which was not in the categories (e.g. ``Series(Categorical(list("abc"), ordered=True)) > "d"``. This returned ``False`` for all elements, but now raises a ``TypeError``. Equality comparisons also now return ``False`` for ``==`` and ``True`` for ``!=``. (:issue:`9848`)
135+
136+
- Bug in DataFrame ``__setitem__`` when right hand side is a dictionary (:issue:`9874`)

0 commit comments

Comments
 (0)