File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff 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
18111811that cannot be converted to desired dtype or object. By default, ``errors='raise' ``, meaning that any errors encountered
You can’t perform that action at this time.
0 commit comments