We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 248c850 commit 1c3636cCopy full SHA for 1c3636c
doc/source/user_guide/integer_na.rst
@@ -88,10 +88,11 @@ If you create a column of ``NA`` values (for example to fill them later)
88
with ``df['new_col'] = pd.NA``, the ``dtype`` would be set to ``object`` in the
89
new column. The performance on this column will be worse than with
90
the appropriate type. It's better to use
91
-``df['new_col'] = pd.Series(pd.NA, dtype='Int64')``
+``df['new_col'] = pd.Series(pd.NA, dtype="Int64")``
92
(or another ``dtype`` that supports ``NA``).
93
94
.. ipython:: python
95
+
96
df = pd.DataFrame()
97
df['objects'] = pd.NA
98
df.dtypes
0 commit comments