Skip to content

Commit 9a11472

Browse files
Add strict= to zip() loops in pandas/core/arrays/period.py
1 parent 3386d01 commit 9a11472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/period.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ def _range_from_fields(
14551455
freq = to_offset(freq, is_period=True)
14561456
base = libperiod.freq_to_dtype_code(freq)
14571457
arrays = _make_field_arrays(year, month, day, hour, minute, second)
1458-
for y, mth, d, h, mn, s in zip(*arrays):
1458+
for y, mth, d, h, mn, s in compat.zip(*arrays, strict=True):
14591459
ordinals.append(libperiod.period_ordinal(y, mth, d, h, mn, s, 0, 0, base))
14601460

14611461
return np.array(ordinals, dtype=np.int64), freq

0 commit comments

Comments
 (0)