Skip to content

Commit c30209d

Browse files
committed
DOC: Cleaning up
1 parent 278e922 commit c30209d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/source/basics.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1737,7 +1737,7 @@ Convert a subset of columns to a specified type using :meth:`~DataFrame.astype`
17371737
17381738
.. note::
17391739

1740-
When trying to convert a subset of columns to a specified type using :meth:`~DataFrame.astype` and :meth:`~DataFrame.loc`, utilizing **:** as mask, upcasting occurs.
1740+
When trying to convert a subset of columns to a specified type using :meth:`~DataFrame.astype` and :meth:`~DataFrame.loc`, upcasting occurs.
17411741

17421742
:meth:`~DataFrame.loc` tries to fit in what we are assigning to the current dtypes, while ``[]`` will overwrite them taking the dtype from the right hand side. Therefore the following piece of code produces the unintended result.
17431743

0 commit comments

Comments
 (0)