refactor(data): improve variable naming in generate_df_tuples function for clarity

This commit is contained in:
nuluh
2025-06-26 10:53:10 +07:00
parent c98c6a091b
commit e8eb07a91b

View File

@@ -61,9 +61,9 @@ def generate_df_tuples(total_dfs=30, group_size=5, prefix="zzzAD", extension="TX
group = [] group = []
for i in range(1, 6): # TODO: shouldnt be hardcoded for i in range(1, 6): # TODO: shouldnt be hardcoded
n = g * 5 + i n = g * 5 + i
bottom = i # 1, 2, 3, 4, 5 bottom_end = i # 1, 2, 3, 4, 5
b = a + 25 # 26, 27, 28, 29, 30 # TODO: shouldnt be hardcoded top_end = bottom_end + 25 # 26, 27, 28, 29, 30 # TODO: shouldnt be hardcoded
group.append((f"{prefix}{n}.{extension}", [a, b])) group.append((f"{prefix}{n}.{extension}", [bottom_end, top_end]))
result.append(group) result.append(group)
# Add special groups at specified positions (other than beginning) # Add special groups at specified positions (other than beginning)