wb_purchases_handler 1.1
This commit is contained in:
@@ -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['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
|
df_validate['counts'] = df_validate['counts'].astype(int) #Float to Int, if exists
|
||||||
|
|
||||||
validated_rows, errors = [], []
|
validated_rows, errors = [], []
|
||||||
for i, row in df_validate.iterrows(): #проходит построчно по df, где i - индекс строки, row - данные строки
|
for i, row in df_validate.iterrows(): #проходит построчно по df, где i - индекс строки, row - данные строки
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user