excel opening optimization

This commit is contained in:
2026-01-22 03:23:27 +03:00
parent 5041e6bd51
commit 62b1a4a48a
3 changed files with 33 additions and 24 deletions

View File

@@ -23,6 +23,7 @@ def process_sheet(df, multiply_price=1, sheet_name=''):
#Группировка
df = df.groupby('arti', as_index=False).agg({'counts': 'sum', 'price': 'sum'}) #groupping
print(df)
df = processing(df) #vlookup for ref_keys
validated_rows, errors = [], []
for i, row in df.iterrows(): #проходит построчно по df, где i - индекс строки, row - данные строки