grouping digits with underscores

More readable. Since Python 3.6: https://docs.python.org/3/library/functions.html#int

Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
pull/11902/head
Mozi 4 months ago committed by GitHub
parent bcda6e49b0
commit 5b6ad82dae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1382,7 +1382,7 @@ def datetime_round(dt_, precision='day'):
if precision == 'microsecond': if precision == 'microsecond':
return dt_ return dt_
time_scale = 1000000 time_scale = 1_000_000
unit_seconds = { unit_seconds = {
'day': 86400, 'day': 86400,
'hour': 3600, 'hour': 3600,

Loading…
Cancel
Save