Skip to content

Commit 248c850

Browse files
committed
Update boolean.rst
1 parent 4de348d commit 248c850

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/source/user_guide/boolean.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ If you create a column of ``NA`` values (for example to fill them later)
4141
with ``df['new_col'] = pd.NA``, the ``dtype`` would be set to ``object`` in the
4242
new column. The performance on this column will be worse than with
4343
the appropriate type. It's better to use
44-
``df['new_col'] = pd.Series(pd.NA, dtype='Int64')``
44+
``df['new_col'] = pd.Series(pd.NA, dtype="boolean")``
4545
(or another ``dtype`` that supports ``NA``).
4646

4747
.. ipython:: python
48+
4849
df = pd.DataFrame()
4950
df['objects'] = pd.NA
5051
df.dtypes

0 commit comments

Comments
 (0)