mdbq 2.4.1__py3-none-any.whl → 2.4.3__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/query_data.py +14 -1
- mdbq/dataframe/converter.py +3 -0
- {mdbq-2.4.1.dist-info → mdbq-2.4.3.dist-info}/METADATA +1 -1
- {mdbq-2.4.1.dist-info → mdbq-2.4.3.dist-info}/RECORD +6 -6
- {mdbq-2.4.1.dist-info → mdbq-2.4.3.dist-info}/WHEEL +0 -0
- {mdbq-2.4.1.dist-info → mdbq-2.4.3.dist-info}/top_level.txt +0 -0
mdbq/aggregation/query_data.py
CHANGED
@@ -1521,6 +1521,12 @@ class GroupBy:
|
|
1521
1521
|
'冬',
|
1522
1522
|
]
|
1523
1523
|
},
|
1524
|
+
{
|
1525
|
+
'类别': '一键起量',
|
1526
|
+
'值': [
|
1527
|
+
'一键起量',
|
1528
|
+
]
|
1529
|
+
},
|
1524
1530
|
{
|
1525
1531
|
'类别': '款式',
|
1526
1532
|
'值': [
|
@@ -1572,7 +1578,6 @@ class GroupBy:
|
|
1572
1578
|
'老花',
|
1573
1579
|
'包包',
|
1574
1580
|
'通勤',
|
1575
|
-
'高级感',
|
1576
1581
|
'轻奢',
|
1577
1582
|
'包',
|
1578
1583
|
'新款',
|
@@ -1582,6 +1587,14 @@ class GroupBy:
|
|
1582
1587
|
'精致',
|
1583
1588
|
'奢侈',
|
1584
1589
|
'袋',
|
1590
|
+
'腰带',
|
1591
|
+
'裤带',
|
1592
|
+
'女士',
|
1593
|
+
'复古',
|
1594
|
+
'高级',
|
1595
|
+
'容量',
|
1596
|
+
'时尚',
|
1597
|
+
'商务',
|
1585
1598
|
],
|
1586
1599
|
},
|
1587
1600
|
]
|
mdbq/dataframe/converter.py
CHANGED
@@ -40,6 +40,9 @@ class DataFrameConverter(object):
|
|
40
40
|
df.reset_index(inplace=True, drop=True) # 重置索引,避免下面的 df.loc[0, col] 会出错
|
41
41
|
|
42
42
|
for col in cols:
|
43
|
+
if col.lower() == 'id':
|
44
|
+
df.pop(col) # 等待插入的 df 不能包含 id 列,否则可能跟现有 id 主键冲突
|
45
|
+
continue
|
43
46
|
# 百分比在某些数据库中不兼容, 转换百分比为小数
|
44
47
|
df[col] = df[col].apply(lambda x: float(float((str(x).rstrip("%"))) / 100) if str(x).endswith('%') and '~' not in str(x) else x)
|
45
48
|
# 尝试转换合适的数据类型
|
@@ -5,7 +5,7 @@ mdbq/aggregation/aggregation.py,sha256=CS_gMBwPKQo7uId8BrsYNTjtCZKzRVV7gT4PfE2Q4
|
|
5
5
|
mdbq/aggregation/df_types.py,sha256=U9i3q2eRPTDY8qAPTw7irzu-Tlg4CIySW9uYro81wdk,8125
|
6
6
|
mdbq/aggregation/mysql_types.py,sha256=DQYROALDiwjJzjhaJfIIdnsrNs11i5BORlj_v6bp67Y,11062
|
7
7
|
mdbq/aggregation/optimize_data.py,sha256=Wis40oL04M7E1pkvgNPjyVFAUe-zgjimjIVAikxYY8Y,4418
|
8
|
-
mdbq/aggregation/query_data.py,sha256
|
8
|
+
mdbq/aggregation/query_data.py,sha256=b-beZv7JHMUe7jK0wr-cNClMVYOop3meb1fAGSadfIQ,96001
|
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
|
@@ -19,7 +19,7 @@ mdbq/config/products.py,sha256=hN9UMkM6j76HYMulTYdtr3mOhh9QdpvvrLH14a_mbFY,5980
|
|
19
19
|
mdbq/config/set_support.py,sha256=xkZCX6y9Bq1ppBpJAofld4B2YtchA7fl0eT3dx3CrSI,777
|
20
20
|
mdbq/config/update_conf.py,sha256=taL3ZqKgiVWwUrDFuaYhim9a72Hm4BHRhhDscJTziR8,4535
|
21
21
|
mdbq/dataframe/__init__.py,sha256=2HtCN8AdRj53teXDqzysC1h8aPL-mMFy561ESmhehGQ,22
|
22
|
-
mdbq/dataframe/converter.py,sha256=
|
22
|
+
mdbq/dataframe/converter.py,sha256=LT3ULDXIQA7BUz5t5SLizazjyOHLjPJDLOwa0lRqP34,3984
|
23
23
|
mdbq/log/__init__.py,sha256=Mpbrav0s0ifLL7lVDAuePEi1hJKiSHhxcv1byBKDl5E,15
|
24
24
|
mdbq/log/mylogger.py,sha256=oaT7Bp-Hb9jZt52seP3ISUuxVcI19s4UiqTeouScBO0,3258
|
25
25
|
mdbq/mongo/__init__.py,sha256=SILt7xMtQIQl_m-ik9WLtJSXIVf424iYgCfE_tnQFbw,13
|
@@ -41,7 +41,7 @@ mdbq/req_post/__init__.py,sha256=jso1oHcy6cJEfa7udS_9uO5X6kZLoPBF8l3wCYmr5dM,18
|
|
41
41
|
mdbq/req_post/req_tb.py,sha256=PexWSCPJNM6Tv0ol4lAWIhlOwsAr_frnjtcdSHCFiek,36179
|
42
42
|
mdbq/spider/__init__.py,sha256=RBMFXGy_jd1HXZhngB2T2XTvJqki8P_Fr-pBcwijnew,18
|
43
43
|
mdbq/spider/aikucun.py,sha256=Olq7IJP9itM4wuNxZeHOG-Q3i8wWyB4hY8TUGGwCvQ0,14104
|
44
|
-
mdbq-2.4.
|
45
|
-
mdbq-2.4.
|
46
|
-
mdbq-2.4.
|
47
|
-
mdbq-2.4.
|
44
|
+
mdbq-2.4.3.dist-info/METADATA,sha256=Uhgb1ytjq7-MAb48QIiqM6z6DNJ8RQGHj97NgME-3w8,245
|
45
|
+
mdbq-2.4.3.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
46
|
+
mdbq-2.4.3.dist-info/top_level.txt,sha256=2FQ-uLnCSB-OwFiWntzmwosW3X2Xqsg0ewh1axsaylA,5
|
47
|
+
mdbq-2.4.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|