mdbq 1.6.8__py3-none-any.whl → 1.6.9__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 -1
- mdbq/clean/data_clean.py +3 -0
- {mdbq-1.6.8.dist-info → mdbq-1.6.9.dist-info}/METADATA +1 -1
- {mdbq-1.6.8.dist-info → mdbq-1.6.9.dist-info}/RECORD +6 -6
- {mdbq-1.6.8.dist-info → mdbq-1.6.9.dist-info}/WHEEL +0 -0
- {mdbq-1.6.8.dist-info → mdbq-1.6.9.dist-info}/top_level.txt +0 -0
mdbq/aggregation/aggregation.py
CHANGED
@@ -74,7 +74,7 @@ class DatabaseUpdate:
|
|
74
74
|
# 只针对 csv, xlsx 文件进行处理
|
75
75
|
if not name.endswith('.csv') and not name.endswith('.xls') and not name.endswith('.xlsx'):
|
76
76
|
continue
|
77
|
-
df = pd.DataFrame()
|
77
|
+
df = pd.DataFrame() # 初始化 df
|
78
78
|
encoding = self.get_encoding(file_path=os.path.join(root, name)) # 用于处理 csv 文件
|
79
79
|
tg_names = ['营销场景报表', '计划报表', '单元报表', '关键词报表', '人群报表', '主体报表',
|
80
80
|
'其他主体报表',
|
@@ -187,6 +187,8 @@ class DatabaseUpdate:
|
|
187
187
|
collection_name='店铺来源_月数据_旧版'
|
188
188
|
else:
|
189
189
|
collection_name='店铺来源_日数据_旧版'
|
190
|
+
elif name.endswith('.csv') and '客户运营平台_客户列表' in name:
|
191
|
+
df = pd.read_csv(os.path.join(root, name), encoding=encoding, header=0, na_filter=False)
|
190
192
|
elif name.endswith('.xls') and '生意参谋' in name and '商品_全部' in name:
|
191
193
|
# 店铺商品排行
|
192
194
|
df = pd.read_excel(os.path.join(root, name), header=4)
|
@@ -550,6 +552,8 @@ class DatabaseUpdate:
|
|
550
552
|
df.insert(0, '店铺名称', 'coome旗舰店') # 插入新列
|
551
553
|
db_name = '属性设置2'
|
552
554
|
collection_name = '商品素材导出'
|
555
|
+
else:
|
556
|
+
df = pd.DataFrame()
|
553
557
|
|
554
558
|
if is_move:
|
555
559
|
try:
|
mdbq/clean/data_clean.py
CHANGED
@@ -1146,6 +1146,9 @@ class DataClean:
|
|
1146
1146
|
elif name.endswith('.csv') and '零售明细统计' in name:
|
1147
1147
|
t_path = str(pathlib.Path(self.source_path, '生意经/E3零售明细统计'))
|
1148
1148
|
bib(t_path, _as_month=True)
|
1149
|
+
elif name.endswith('.csv') and '客户运营平台_客户列表' in name:
|
1150
|
+
t_path = str(pathlib.Path(self.source_path, '生意参谋/客户运营平台'))
|
1151
|
+
bib(t_path, _as_month=True)
|
1149
1152
|
# 京东分界线 ------- 开始标记
|
1150
1153
|
# 京东分界线
|
1151
1154
|
elif name.endswith('.csv') and '全部渠道_商品明细' in name:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
mdbq/__init__.py,sha256=Il5Q9ATdX8yXqVxtP_nYqUhExzxPC_qk_WXQ_4h0exg,16
|
2
2
|
mdbq/__version__.py,sha256=y9Mp_8x0BCZSHsdLT_q5tX9wZwd5QgqrSIENLrb6vXA,62
|
3
3
|
mdbq/aggregation/__init__.py,sha256=EeDqX2Aml6SPx8363J-v1lz0EcZtgwIBYyCJV6CcEDU,40
|
4
|
-
mdbq/aggregation/aggregation.py,sha256=
|
4
|
+
mdbq/aggregation/aggregation.py,sha256=S1ZH4EXsYJ2qWDBJVAHQ4oSgPegTm3UXqxF2CgajOYM,62019
|
5
5
|
mdbq/aggregation/df_types.py,sha256=oQJS2IBU3_IO6GMgbssHuC2yCjNnbta0QPGrFOwNLnU,7591
|
6
6
|
mdbq/aggregation/mysql_types.py,sha256=DQYROALDiwjJzjhaJfIIdnsrNs11i5BORlj_v6bp67Y,11062
|
7
7
|
mdbq/aggregation/optimize_data.py,sha256=u2Kl_MFtZueXJ57ycy4H2OhXD431RctUYJYCl637uT0,4176
|
@@ -9,7 +9,7 @@ mdbq/aggregation/query_data.py,sha256=EpPkFxeQK4o--GncY3UWiOQHhlfzxHTQ2Q41pDCFwW
|
|
9
9
|
mdbq/bdup/__init__.py,sha256=AkhsGk81SkG1c8FqDH5tRq-8MZmFobVbN60DTyukYTY,28
|
10
10
|
mdbq/bdup/bdup.py,sha256=LAV0TgnQpc-LB-YuJthxb0U42_VkPidzQzAagan46lU,4234
|
11
11
|
mdbq/clean/__init__.py,sha256=A1d6x3L27j4NtLgiFV5TANwEkLuaDfPHDQNrPBbNWtU,41
|
12
|
-
mdbq/clean/data_clean.py,sha256=
|
12
|
+
mdbq/clean/data_clean.py,sha256=RtH51YY0ImeCW2DEPS0GU9dt1KfwMzUDSBK50yCXDeA,91225
|
13
13
|
mdbq/company/__init__.py,sha256=qz8F_GsP_pMB5PblgJAUAMjasuZbOEp3qQOCB39E8f0,21
|
14
14
|
mdbq/company/copysh.py,sha256=WCZ92vCJAy6_ZFeOxWL-U9gArIpyga4xts-s1wKsspY,17268
|
15
15
|
mdbq/config/__init__.py,sha256=jso1oHcy6cJEfa7udS_9uO5X6kZLoPBF8l3wCYmr5dM,18
|
@@ -35,7 +35,7 @@ mdbq/pbix/__init__.py,sha256=Trtfaynu9RjoTyLLYBN2xdRxTvm_zhCniUkVTAYwcjo,24
|
|
35
35
|
mdbq/pbix/pbix_refresh.py,sha256=JUjKW3bNEyoMVfVfo77UhguvS5AWkixvVhDbw4_MHco,2396
|
36
36
|
mdbq/pbix/refresh_all.py,sha256=tgy762608HMaXWynbOURIf2UVMuSPybzrDXQnOOcnZU,6102
|
37
37
|
mdbq/spider/__init__.py,sha256=RBMFXGy_jd1HXZhngB2T2XTvJqki8P_Fr-pBcwijnew,18
|
38
|
-
mdbq-1.6.
|
39
|
-
mdbq-1.6.
|
40
|
-
mdbq-1.6.
|
41
|
-
mdbq-1.6.
|
38
|
+
mdbq-1.6.9.dist-info/METADATA,sha256=lAjq83BHMeb0BhMx35RNBXs_-k9FSBOwmWAVS2t7zpw,245
|
39
|
+
mdbq-1.6.9.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
40
|
+
mdbq-1.6.9.dist-info/top_level.txt,sha256=2FQ-uLnCSB-OwFiWntzmwosW3X2Xqsg0ewh1axsaylA,5
|
41
|
+
mdbq-1.6.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|