Skip to content

Commit 5263054

Browse files
committed
fix typos + update doc
1 parent d5c7b0a commit 5263054

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

pandas/tslib.pyx

+11-8
Original file line numberDiff line numberDiff line change
@@ -652,18 +652,21 @@ class Timestamp(_Timestamp):
652652

653653
def replace(self, year=None, month=None, day=None,
654654
hour=None, minute=None, second=None, microsecond=None, nanosecond=None,
655-
tzinfo=None)
655+
tzinfo=None):
656656
"""
657657
implements datetime.replace, handles nanoseconds
658658
659659
Parameters
660660
----------
661-
kwargs: key-value dict
662-
663-
accepted keywords are:
664-
year, month, day, hour, minute, second, microsecond, nanosecond, tzinfo
665-
666-
values must be integer, or for tzinfo, a tz-convertible
661+
year : int, optional
662+
month : int, optional
663+
day : int, optional
664+
hour : int, optional
665+
minute : int, optional
666+
second : int, optional
667+
microsecond : int, optional
668+
nanosecond: int, optional
669+
tzinfo : tz-convertible, optional
667670
668671
Returns
669672
-------
@@ -673,7 +676,7 @@ class Timestamp(_Timestamp):
673676
cdef:
674677
pandas_datetimestruct dts
675678
int64_t value
676-
object tzinfo, result, k, v
679+
object _tzinfo, result, k, v
677680
_TSObject ts
678681

679682
# set to naive if needed

0 commit comments

Comments
 (0)