Skip to content

Commit 579ebc8

Browse files
committed
fixup! FEAT: implemented sas7bdat adapter using Pandas
1 parent 3ac76b0 commit 579ebc8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

larray_editor/arrayadapter.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3743,11 +3743,12 @@ def get_values(self, h_start, v_start, h_stop, v_stop):
37433743
# An exception would be eaten by the adapter so the user
37443744
# would never see it
37453745
msg = 'File is too large to display non top rows'
3746-
first_row = [[msg] + [''] * (expected_num_cols - 1)]
3747-
other_rows = [
3748-
[''] * expected_num_cols
3749-
] * (expected_num_rows - 1)
3750-
return first_row + other_rows
3746+
first_row = [msg] + [''] * (expected_num_cols - 1)
3747+
second_row = [''] * expected_num_cols
3748+
all_rows = [first_row, second_row] * (expected_num_rows // 2)
3749+
if expected_num_rows % 2 == 1:
3750+
all_rows.append(first_row)
3751+
return all_rows
37513752

37523753
while current_row < v_start - self._chunk_size:
37533754
reader.read(self._chunk_size)

0 commit comments

Comments
 (0)