Skip to content

Commit e2c6172

Browse files
committed
add docstring
1 parent 47f8646 commit e2c6172

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pandas/_libs/tslibs/offsets.pyx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,17 @@ cdef class Day(SingleConstructorOffset):
11631163

11641164
@cache_readonly
11651165
def freqstr(self) -> str:
1166+
"""
1167+
Return a string representing the frequency.
1168+
1169+
Examples
1170+
--------
1171+
>>> pd.Day(5).freqstr
1172+
'5D'
1173+
1174+
>>> pd.offsets.Day(1).freqstr
1175+
'D'
1176+
"""
11661177
if self.n != 1:
11671178
return str(self.n) + "D"
11681179
return "D"

0 commit comments

Comments
 (0)