Skip to content

Commit d2dc204

Browse files
committed
Address review comment
1 parent 767cc43 commit d2dc204

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/_libs/tslibs/conversion.pyx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,11 @@ def cast_from_unit_vectorized(
137137

138138
out = np.empty(shape, dtype="i8")
139139
base = np.empty(shape, dtype="i8")
140-
frac = np.empty(shape, dtype="f8")
140+
frac = np.zeros(shape, dtype="f8")
141141

142142
for i in range(len(values)):
143143
if is_nan(values[i]):
144144
base[i] = NPY_NAT
145-
frac[i] = 0
146145
else:
147146
base[i] = <int64_t>values[i]
148147
frac[i] = values[i] - base[i]

0 commit comments

Comments
 (0)