mdbq 1.9.8__py3-none-any.whl → 1.9.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/clean/data_clean.py CHANGED
@@ -116,7 +116,15 @@ class DataClean:
116
116
 
117
117
  df.replace(to_replace=['\\N'], value=0, regex=False, inplace=True) # 替换掉特殊字符
118
118
  df.fillna(0, inplace=True)
119
- col_ids = ['场景ID', '计划ID', '单元ID', '主体ID', '宝贝ID', '词ID/词包ID', '创意ID']
119
+ col_ids = [
120
+ # '场景ID', # 2024.10.5 改为不加 =""
121
+ '计划ID',
122
+ '单元ID',
123
+ '主体ID',
124
+ '宝贝ID',
125
+ '词ID/词包ID',
126
+ '创意ID',
127
+ ]
120
128
  sb = df.columns.tolist()
121
129
  if '日期' not in sb:
122
130
  print(f'{name} 注意:该报表不包含分日数据,数据不会保存,请重新下载!')
@@ -162,7 +170,10 @@ class DataClean:
162
170
  shop_name = shop_name[0]
163
171
  else:
164
172
  shop_name = ''
165
- cols = ['场景ID', '计划ID']
173
+ cols = [
174
+ # '场景ID', # 2024.10.5 改为不加 =""
175
+ '计划ID',
176
+ ]
166
177
  for col in cols:
167
178
  df[col] = df[col].apply(lambda x: f'="{x}"' if x and '=' not in str(x) else x)
168
179
  df.replace(to_replace=['\\N'], value=0, regex=False, inplace=True) # 替换掉特殊字符
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mdbq
3
- Version: 1.9.8
3
+ Version: 1.9.9
4
4
  Home-page: https://pypi.org/project/mdbsql
5
5
  Author: xigua,
6
6
  Author-email: 2587125111@qq.com
@@ -9,7 +9,7 @@ mdbq/aggregation/query_data.py,sha256=32NjVVYLnfFkzD8TflmNVhpdQTLRRUrb9toMGApSOC
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=y83uqOyM6nL0d3ClUqYMjE23ghBEkhz9uv19qrxA8NA,100980
12
+ mdbq/clean/data_clean.py,sha256=BgOZlJwuv5X4BL24DOHC6XtMFspFD-AdCBC_EJJ9rjA,101382
13
13
  mdbq/company/__init__.py,sha256=qz8F_GsP_pMB5PblgJAUAMjasuZbOEp3qQOCB39E8f0,21
14
14
  mdbq/company/copysh.py,sha256=VUaaJPXPYPHWwnkdK77PWz_dAXZyEmYBA9Df1yROHAc,17764
15
15
  mdbq/config/__init__.py,sha256=jso1oHcy6cJEfa7udS_9uO5X6kZLoPBF8l3wCYmr5dM,18
@@ -36,7 +36,7 @@ mdbq/pbix/__init__.py,sha256=Trtfaynu9RjoTyLLYBN2xdRxTvm_zhCniUkVTAYwcjo,24
36
36
  mdbq/pbix/pbix_refresh.py,sha256=JUjKW3bNEyoMVfVfo77UhguvS5AWkixvVhDbw4_MHco,2396
37
37
  mdbq/pbix/refresh_all.py,sha256=0uAnBKCd5cx5FLTkawN1GV9yi87rfyMgYal5LABtumQ,7186
38
38
  mdbq/spider/__init__.py,sha256=RBMFXGy_jd1HXZhngB2T2XTvJqki8P_Fr-pBcwijnew,18
39
- mdbq-1.9.8.dist-info/METADATA,sha256=ZtwrpFJzCLnABnvOHyrVFqDt346SgQIh2SsqIaioSF8,245
40
- mdbq-1.9.8.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
41
- mdbq-1.9.8.dist-info/top_level.txt,sha256=2FQ-uLnCSB-OwFiWntzmwosW3X2Xqsg0ewh1axsaylA,5
42
- mdbq-1.9.8.dist-info/RECORD,,
39
+ mdbq-1.9.9.dist-info/METADATA,sha256=zYBl4BSGNMyJDZRf5BKpMZKIxlJv6tPosWHyZlc7w04,245
40
+ mdbq-1.9.9.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
41
+ mdbq-1.9.9.dist-info/top_level.txt,sha256=2FQ-uLnCSB-OwFiWntzmwosW3X2Xqsg0ewh1axsaylA,5
42
+ mdbq-1.9.9.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.44.0)
2
+ Generator: setuptools (70.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5