Skip to content

Commit 67461fe

Browse files
committed
Update integer_na.rst
1 parent e6d0efc commit 67461fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/source/user_guide/integer_na.rst

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

9494
.. ipython:: python
95+
9596
df = pd.DataFrame()
9697
df['objects'] = pd.NA
9798
df.dtypes

0 commit comments

Comments
 (0)