We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4de348d commit 248c850Copy full SHA for 248c850
doc/source/user_guide/boolean.rst
@@ -41,10 +41,11 @@ If you create a column of ``NA`` values (for example to fill them later)
41
with ``df['new_col'] = pd.NA``, the ``dtype`` would be set to ``object`` in the
42
new column. The performance on this column will be worse than with
43
the appropriate type. It's better to use
44
-``df['new_col'] = pd.Series(pd.NA, dtype='Int64')``
+``df['new_col'] = pd.Series(pd.NA, dtype="boolean")``
45
(or another ``dtype`` that supports ``NA``).
46
47
.. ipython:: python
48
+
49
df = pd.DataFrame()
50
df['objects'] = pd.NA
51
df.dtypes
0 commit comments