Skip to content

Commit c1ace38

Browse files
committed
TimeFormatter: Docstring: add parameters and returns sections
1 parent 9b8bde4 commit c1ace38

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

pandas/plotting/_converter.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,19 @@ def __call__(self, x, pos=0):
193193
"""
194194
Return the time of day as a formatted string.
195195
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.
196+
Parameters
197+
----------
198+
x : float
199+
The time of day specified as seconds since 00:00 (midnight),
200+
with upto microsecond precision.
201+
pos
202+
Unused
203+
204+
Returns
205+
-------
206+
str
207+
A string in HH:MM:SS.mmmuuu format. Microseconds,
208+
milliseconds and seconds are only displayed if non-zero.
201209
"""
202210
fmt = '%H:%M:%S.%f'
203211
s = int(x)

0 commit comments

Comments
 (0)