Skip to content

Commit c5d9f54

Browse files
committed
update datetimes.py
1 parent 66f7453 commit c5d9f54

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pandas/core/arrays/datetimes.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,10 +1312,9 @@ def to_timestamp(self):
13121312
2 2023-03-01
13131313
dtype: datetime64[ns]
13141314
"""
1315-
# Call the to_timestamp function in PeriodArray() class, ignoring freq and how
1316-
from pandas.core.arrays import PeriodArray
1317-
1318-
return PeriodArray(self._data).to_timestamp()
1315+
# Uses to_timestamp method defined in PeriodArray Class()
1316+
# function here only used to update docstring
1317+
return
13191318

13201319
# -----------------------------------------------------------------
13211320
# Properties - Vectorized Timestamp Properties/Methods

0 commit comments

Comments
 (0)