Skip to content

Commit e9d17cd

Browse files
committed
DOC: formatting in basics.rst
1 parent 1369e12 commit e9d17cd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/source/basics.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -1794,18 +1794,18 @@ The following functions are available for one dimensional object arrays or scala
17941794
17951795
- :meth:`~pandas.to_datetime` (conversion to datetime objects)
17961796

1797-
.. ipython:: python
1797+
.. ipython:: python
17981798
1799-
import datetime
1800-
m = ['2016-07-09', datetime.datetime(2016, 3, 2)]
1801-
pd.to_datetime(m)
1799+
import datetime
1800+
m = ['2016-07-09', datetime.datetime(2016, 3, 2)]
1801+
pd.to_datetime(m)
18021802
18031803
- :meth:`~pandas.to_timedelta` (conversion to timedelta objects)
18041804

1805-
.. ipython:: python
1805+
.. ipython:: python
18061806
1807-
m = ['5us', pd.Timedelta('1day')]
1808-
pd.to_timedelta(m)
1807+
m = ['5us', pd.Timedelta('1day')]
1808+
pd.to_timedelta(m)
18091809
18101810
To force a conversion, we can pass in an ``errors`` argument, which specifies how pandas should deal with elements
18111811
that cannot be converted to desired dtype or object. By default, ``errors='raise'``, meaning that any errors encountered

0 commit comments

Comments
 (0)