mdbq 1.8.9__py3-none-any.whl → 1.9.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mdbq/aggregation/aggregation.py +5 -0
- mdbq/clean/data_clean.py +875 -870
- mdbq/company/copysh.py +2 -2
- mdbq/other/sku_picture.py +3 -1
- {mdbq-1.8.9.dist-info → mdbq-1.9.1.dist-info}/METADATA +1 -1
- {mdbq-1.8.9.dist-info → mdbq-1.9.1.dist-info}/RECORD +8 -8
- {mdbq-1.8.9.dist-info → mdbq-1.9.1.dist-info}/WHEEL +0 -0
- {mdbq-1.8.9.dist-info → mdbq-1.9.1.dist-info}/top_level.txt +0 -0
mdbq/aggregation/aggregation.py
CHANGED
@@ -379,6 +379,11 @@ class DatabaseUpdate:
|
|
379
379
|
df.replace(to_replace=['--'], value='', regex=False, inplace=True)
|
380
380
|
df = df[df['人群规模'] != '']
|
381
381
|
if len(df) == 0:
|
382
|
+
if is_move:
|
383
|
+
try:
|
384
|
+
os.remove(os.path.join(root, name)) # 是否移除原文件
|
385
|
+
except Exception as e:
|
386
|
+
print(f'{name}, {e}')
|
382
387
|
continue
|
383
388
|
elif name.endswith('.csv') and '客户_客户概况_画像' in name:
|
384
389
|
df = pd.read_csv(os.path.join(root, name), encoding='utf-8_sig', header=0, na_filter=False)
|