Skip to content

Commit 1a11153

Browse files
committed
simplify
1 parent e7d5b0d commit 1a11153

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/plotting/_converter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ def __call__(self, x, pos=0):
193193
fmt = '%H:%M:%S.%f'
194194
s = int(x)
195195
msus = int(round((x - s) * 1e6))
196-
ms = int(msus / 1e3)
197-
us = int(msus - ms * 1e3)
196+
ms = msus // 1000
197+
us = msus % 1000
198198
m, s = divmod(s, 60)
199199
h, m = divmod(m, 60)
200200
_, h = divmod(h, 24)

0 commit comments

Comments
 (0)