File tree 3 files changed +3
-1
lines changed
3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ Timedelta
260
260
261
261
- Bug in constructing a :class: `Timedelta ` with a high precision integer that would round the :class: `Timedelta ` components (:issue: `31354 `)
262
262
- Bug in dividing ``np.nan `` or ``None `` by :class: `Timedelta` ` incorrectly returning ``NaT `` (:issue: `31869 `)
263
- -
263
+ - Timedeltas now understand `` µs `` as identifier for microsecond ( :issue: ` 32899 `)
264
264
265
265
Timezones
266
266
^^^^^^^^^
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ cdef dict timedelta_abbrevs = {
82
82
" us" : " us" ,
83
83
" microseconds" : " us" ,
84
84
" microsecond" : " us" ,
85
+ " µs" : " us" ,
85
86
" micro" : " us" ,
86
87
" micros" : " us" ,
87
88
" u" : " us" ,
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ def test_construction():
51
51
assert Timedelta ("1 milli" ) == timedelta (milliseconds = 1 )
52
52
assert Timedelta ("1 millisecond" ) == timedelta (milliseconds = 1 )
53
53
assert Timedelta ("1 us" ) == timedelta (microseconds = 1 )
54
+ assert Timedelta ("1 µs" ) == timedelta (microseconds = 1 )
54
55
assert Timedelta ("1 micros" ) == timedelta (microseconds = 1 )
55
56
assert Timedelta ("1 microsecond" ) == timedelta (microseconds = 1 )
56
57
assert Timedelta ("1.5 microsecond" ) == Timedelta ("00:00:00.000001500" )
You can’t perform that action at this time.
0 commit comments