fix: Raise local var scope so it is available later
@@ -731,6 +731,8 @@ class Writer:
# it's compressed when sufficiently large.
data = bytearray()
+ # raise i scope out of the for loop
+ i = 0
for i, row in enumerate(rows):
# Add "None" filter type.
# Currently, it's essential that this filter type be used
