Skip to content

Commit 7400607

Browse files
committed
DOC: Added refs to basics.dtypes and basics.object_conversion, added whatsnew entry
1 parent 8112ad5 commit 7400607

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

doc/source/basics.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,6 +1751,8 @@ Convert a subset of columns to a specified type using :meth:`~DataFrame.astype`
17511751
dft.loc[:, ['a', 'b']] = dft.loc[:, ['a', 'b']].astype(np.uint8)
17521752
dft.dtypes
17531753
1754+
.. _basics.object_conversion:
1755+
17541756
object conversion
17551757
~~~~~~~~~~~~~~~~~
17561758

doc/source/io.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,13 @@ individual columns:
436436
df.dtypes
437437
438438
Fortunately, ``pandas`` offers more than one way to ensure that your column(s)
439-
contain only one ``dtype``. For instance, you can use the ``converters`` argument
439+
contain only one ``dtype``. If you're unfamiliar with these concepts, you can
440+
see :ref:`here<basics.dtypes>` to learn more about dtypes, and
441+
:ref:`here<basics.object_conversion>` to learn more about ``object`` conversion in
442+
``pandas``.
443+
444+
445+
For instance, you can use the ``converters`` argument
440446
of :func:`~pandas.read_csv`:
441447

442448
.. ipython:: python

doc/source/whatsnew/v0.19.0.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ Other enhancements
323323
index=['row1', 'row2'])
324324
df.sort_values(by='row2', axis=1)
325325

326+
- Added documentation to :ref:`I/O<io.dtypes>` regarding the perils of reading in columns with mixed dtypes and how to handle it (:issue:`13746`)
327+
326328
.. _whatsnew_0190.api:
327329

328330

0 commit comments

Comments
 (0)