polars
polars copied to clipboard
`pl.Duration` repr shows `0` for non-zero values
Polars version checks
-
[X] I have checked that this issue has not already been reported.
-
[X] I have confirmed this bug exists on the latest version of Polars.
Issue description
non-zero pl.Duration values display as 0
which seems wrong?
Thank you.
Reproducible example
import polars as pl
s = pl.Series(range(6), dtype=pl.Duration)
print(s)
"""
shape: (6,)
Series: '' [duration[μs]]
[
0µs
0µs
0µs
0µs
0µs
0µs
]
"""
print(*s, sep="\n")
"""
0:00:00
0:00:00.000001
0:00:00.000002
0:00:00.000003
0:00:00.000004
0:00:00.000005
"""
Expected behavior
[
0µs
1µs
2µs
3µs
4µs
5µs
]
Installed versions
---Version info---
Polars: 0.15.6
Index type: UInt32
Python: 3.10.8 (main, Nov 25 2022, 12:57:22)