Skip to content

Commit 44b86cd

Browse files
author
IHackPY
committed
indentation issue
1 parent a5a6a09 commit 44b86cd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pandas/core/indexes/datetimes.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1937,9 +1937,9 @@ def tz_convert(self, tz):
19371937
mapping={True: 'infer', False: 'raise'})
19381938
def tz_localize(self, tz, ambiguous='raise', errors='raise'):
19391939
"""
1940-
Convert aware Datetime index to TimeZone aware Datetime index.
1940+
Convert aware Datetime index to TimeZone aware Datetime index.
19411941
1942-
Localize timezone-naive DatetimeIndex to given time zone , or
1942+
Localize timezone-naive DatetimeIndex to given time zone , or
19431943
remove timezone from timezone aware DatetimeIndex
19441944
19451945
@@ -1972,18 +1972,18 @@ def tz_localize(self, tz, ambiguous='raise', errors='raise'):
19721972
-------
19731973
localized : DatetimeIndex
19741974
1975-
Examples
1975+
Examples
19761976
--------
19771977
In the example below, We put the date range from 01 March 2018 to
19781978
08 March 2018 & convert this to US/Eastern Time zone
19791979
19801980
>>> df = pd.date_range('2018-03-01', '2018-03-08')
19811981
>>> df
1982-
DatetimeIndex(['2018-03-01', '2018-03-02', '2018-03-03', '2018-03-04',
1982+
DatetimeIndex(['2018-03-01', '2018-03-02', '2018-03-03', '2018-03-04',
19831983
'2018-03-05', '2018-03-06', '2018-03-07', '2018-03-08'],
19841984
dtype='datetime64[ns]', freq='D')
19851985
>>> df.tz_localize(tz='US/Eastern')
1986-
DatetimeIndex(['2018-03-01 00:00:00-05:00', '2018-03-02 00:00:00-05:00',
1986+
DatetimeIndex(['2018-03-01 00:00:00-05:00', '2018-03-02 00:00:00-05:00',
19871987
'2018-03-03 00:00:00-05:00', '2018-03-04 00:00:00-05:00',
19881988
'2018-03-05 00:00:00-05:00', '2018-03-06 00:00:00-05:00',
19891989
'2018-03-07 00:00:00-05:00', '2018-03-08 00:00:00-05:00'],
@@ -1992,7 +1992,7 @@ def tz_localize(self, tz, ambiguous='raise', errors='raise'):
19921992
Raises
19931993
------
19941994
TypeError
1995-
If the DatetimeIndex is tz-aware and tz is not None.
1995+
If the DatetimeIndex is tz-aware and tz is not None.
19961996
"""
19971997
if self.tz is not None:
19981998
if tz is None:

0 commit comments

Comments
 (0)