Skip to content

Commit d7fa51f

Browse files
committed
TimeFormatter: Add __call__ docstring
1 parent 1a11153 commit d7fa51f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pandas/plotting/_converter.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,15 @@ def __init__(self, locs):
190190
self.locs = locs
191191

192192
def __call__(self, x, pos=0):
193+
"""
194+
Return the time of day as a formatted string.
195+
196+
The time of day is specified by `x` as seconds since 00:00
197+
(midnight), with upto microsecond precision.
198+
199+
In the returned HH:MM:SS.mmmuuu string, microseconds,
200+
milliseconds and seconds are only displayed if non-zero.
201+
"""
193202
fmt = '%H:%M:%S.%f'
194203
s = int(x)
195204
msus = int(round((x - s) * 1e6))

0 commit comments

Comments
 (0)