用python 自动计算亚马逊vat税款

简述下如何使用pandas计算亚马逊英国vat税款,纯粹是pandas的业务代码。123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475#%%import pandas as pd#%%vat_csv = r"C:UsersAdministratorDownloads18168935102018178.csv"df = pd.read_csv(vat_csv)#%%def filter_free_tax_zone_post_code(x : str): if type(x) is not str: return False return x.startswith('JE') or x.startswith('GY')# # BN列邮编首字母为JE和GY的,是英国的附属岛屿,目前有免税优惠,不用计算df = df[~df['ARRIVAL_POST_CODE'].apply(filter_free_tax_zone_post_code)].copy()#%%# BO SALE_DEPART_COUNTRY 发货国家 BP…

0 Comments