We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7259371 commit 26bd34dCopy full SHA for 26bd34d
pandas/_libs/tslibs/tzconversion.pyx
@@ -96,6 +96,8 @@ timedelta-like}
96
result[i] = _tz_convert_tzlocal_utc(v, tz, to_utc=True)
97
return result
98
99
+ # silence false-positive compiler warning
100
+ ambiguous_array = np.empty(0, dtype=bool)
101
if isinstance(ambiguous, str):
102
if ambiguous == 'infer':
103
infer_dst = True
@@ -159,6 +161,8 @@ timedelta-like}
159
161
if v_right + deltas[pos_right] == val:
160
162
result_b[i] = v_right
163
164
165
+ dst_hours = np.empty(0, dtype=np.int64)
166
if infer_dst:
167
dst_hours = np.empty(n, dtype=np.int64)
168
dst_hours[:] = NPY_NAT
0 commit comments