Skip to content

Commit 103f4e4

Browse files
committed
Update boolean.rst
1 parent 61de055 commit 103f4e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/user_guide/boolean.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ 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)``
45-
(or another ``dtype`` as you desire).
44+
``df['new_col'] = pd.Series(pd.NA, dtype='Int64')``
45+
(or another ``dtype`` that supports ``NA``).
4646

4747
.. ipython:: python
4848
df = pd.DataFrame()

0 commit comments

Comments
 (0)