File tree 1 file changed +7
-7
lines changed
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
1794
1794
1795
1795
- :meth: `~pandas.to_datetime ` (conversion to datetime objects)
1796
1796
1797
- .. ipython :: python
1797
+ .. ipython :: python
1798
1798
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)
1802
1802
1803
1803
- :meth: `~pandas.to_timedelta ` (conversion to timedelta objects)
1804
1804
1805
- .. ipython :: python
1805
+ .. ipython :: python
1806
1806
1807
- m = [' 5us' , pd.Timedelta(' 1day' )]
1808
- pd.to_timedelta(m)
1807
+ m = [' 5us' , pd.Timedelta(' 1day' )]
1808
+ pd.to_timedelta(m)
1809
1809
1810
1810
To force a conversion, we can pass in an ``errors `` argument, which specifies how pandas should deal with elements
1811
1811
that 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