wb_purchases_handler 1.1

This commit is contained in:
2025-11-07 18:58:25 +03:00
parent 3edf41b7a6
commit 07553d96cf

View File

@@ -11,7 +11,6 @@ def process_sheet(df, real_arti = '', real_quantity='', real_sum_1=''):
df_validate['price'] = df_validate['price'].str.replace(' ', '', regex=False).str.replace(',', '.', regex=False).astype(float) #переделка к норм виду и преобразование в float
df_validate['counts'] = df_validate['counts'].astype(int) #Float to Int, if exists
validated_rows, errors = [], []
for i, row in df_validate.iterrows(): #проходит построчно по df, где i - индекс строки, row - данные строки
try: