mdbq 3.4.3__py3-none-any.whl → 3.4.5__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/datashow.py
CHANGED
@@ -4,20 +4,41 @@ import os
|
|
4
4
|
import re
|
5
5
|
import socket
|
6
6
|
import platform
|
7
|
+
import getpass
|
7
8
|
import datetime
|
8
9
|
import time
|
9
10
|
from mdbq.config import myconfig
|
10
11
|
from mdbq.mysql import mysql
|
11
12
|
from mdbq.mysql import s_query
|
13
|
+
from mdbq.other import ua_sj
|
12
14
|
import pandas as pd
|
13
15
|
import numpy as np
|
14
16
|
import plotly.express as px
|
15
17
|
import plotly.graph_objects as go
|
16
18
|
from plotly.subplots import make_subplots
|
17
19
|
import tkinter as tk
|
20
|
+
import requests
|
21
|
+
from io import BytesIO
|
22
|
+
from PIL import Image
|
23
|
+
import base64
|
24
|
+
import matplotlib.pyplot as plt
|
25
|
+
from matplotlib import rcParams
|
18
26
|
|
19
27
|
from sqlalchemy.sql.functions import count
|
20
28
|
|
29
|
+
if platform.system() == 'Windows':
|
30
|
+
rcParams['font.sans-serif'] = ['SimHei'] # matplotlibrc 防止中文乱码
|
31
|
+
D_PATH = os.path.join(f'C:\\Users\\{getpass.getuser()}\\Downloads')
|
32
|
+
elif platform.system() == 'Linux':
|
33
|
+
rcParams['font.sans-serif'] = ['Arial Unicode MS'] # matplotlibrc 防止中文乱码
|
34
|
+
D_PATH = 'Downloads'
|
35
|
+
if not os.path.exists(D_PATH):
|
36
|
+
os.makedirs(D_PATH)
|
37
|
+
else:
|
38
|
+
rcParams['font.sans-serif'] = ['Arial Unicode MS'] # matplotlibrc 防止中文乱码
|
39
|
+
D_PATH = os.path.join(f'/Users/{getpass.getuser()}/Downloads')
|
40
|
+
|
41
|
+
rcParams['axes.unicode_minus'] = False # 防止负号'-'被当作减号处理
|
21
42
|
m_engine = mysql.MysqlUpload(username='', password='', host='', port=0, charset='utf8mb4')
|
22
43
|
company_engine = mysql.MysqlUpload(username='', password='', host='', port=0, charset='utf8mb4')
|
23
44
|
|
@@ -92,7 +113,7 @@ else:
|
|
92
113
|
|
93
114
|
class DataShow:
|
94
115
|
def __init__(self):
|
95
|
-
self.path = '
|
116
|
+
self.path = os.path.join(D_PATH, 'http_server')
|
96
117
|
if not os.path.isdir(self.path):
|
97
118
|
os.makedirs(self.path)
|
98
119
|
root = tk.Tk()
|
@@ -105,8 +126,10 @@ class DataShow:
|
|
105
126
|
|
106
127
|
def getdata(self, db_name, table_name, pro_list, start_date=None, end_date=None):
|
107
128
|
download = s_query.QueryDatas(username=username, password=password, host=host, port=port)
|
108
|
-
if not start_date
|
109
|
-
start_date
|
129
|
+
if not start_date:
|
130
|
+
start_date = '2000-01-01' # 从数据库提取数据,不能是 self.start_date
|
131
|
+
if not end_date:
|
132
|
+
end_date = self.today.strftime('%Y-%m-%d')
|
110
133
|
projection = {}
|
111
134
|
[projection.update({k: 1}) for k in pro_list]
|
112
135
|
__res = []
|
@@ -722,7 +745,7 @@ class DataShow:
|
|
722
745
|
align="left", # 文本对齐方式
|
723
746
|
font=dict(size=12),
|
724
747
|
)
|
725
|
-
fig.write_html(os.path.join(self.path, f'{filename}
|
748
|
+
fig.write_html(os.path.join(self.path, f'{filename}.html'))
|
726
749
|
|
727
750
|
def crowd(self, db_name='人群画像2', table_list=None, pro_list=None, filename='达摩盘人群画像', crowd_id=None, last_date=None):
|
728
751
|
# item_ids = [696017020186, 714066010148, 830890472575]
|
@@ -861,12 +884,341 @@ class DataShow:
|
|
861
884
|
align="left", # 文本对齐方式
|
862
885
|
font=dict(size=12),
|
863
886
|
)
|
864
|
-
fig.write_html(os.path.join(self.path, f'{filename}
|
887
|
+
fig.write_html(os.path.join(self.path, f'{filename}.html'))
|
888
|
+
|
889
|
+
def item_show(self, db_name='聚合数据', table_list=None, pro_list=None, filename='商品数据', start_date=None, end_date=None):
|
890
|
+
if not pro_list:
|
891
|
+
pro_list = ['日期', '店铺名称', '营销场景', '商品id', '花费', '点击量', '加购量', '成交笔数', '成交金额']
|
892
|
+
table_name = '天猫_主体报表'
|
893
|
+
df = self.getdata(
|
894
|
+
db_name=db_name,
|
895
|
+
table_name=table_name,
|
896
|
+
pro_list=pro_list,
|
897
|
+
start_date=start_date,
|
898
|
+
end_date=end_date
|
899
|
+
)
|
900
|
+
df_set = self.getdata(
|
901
|
+
db_name='属性设置3',
|
902
|
+
table_name='商品sku属性',
|
903
|
+
pro_list=['商品id', '白底图'],
|
904
|
+
start_date='2020-01-01',
|
905
|
+
end_date=end_date
|
906
|
+
)
|
907
|
+
df_set = df_set[df_set['白底图'] != '0']
|
908
|
+
df_set.drop_duplicates(subset='商品id', keep='last', inplace=True, ignore_index=True)
|
909
|
+
|
910
|
+
if len(df) == 0:
|
911
|
+
print(f'数据不能为空: {table_name}')
|
912
|
+
return
|
913
|
+
df['日期'] = pd.to_datetime(df['日期'])
|
914
|
+
min_date = df['日期'].min().strftime('%Y-%m-%d')
|
915
|
+
max_date = df['日期'].max().strftime('%Y-%m-%d')
|
916
|
+
|
917
|
+
df = df.groupby(['店铺名称', '商品id'], as_index=False).agg(
|
918
|
+
**{
|
919
|
+
'花费': ('花费', np.sum),
|
920
|
+
'点击量': ('点击量', np.sum),
|
921
|
+
'加购量': ('加购量', np.sum),
|
922
|
+
'成交笔数': ('成交笔数', np.sum),
|
923
|
+
'成交金额': ('成交金额', np.sum),
|
924
|
+
})
|
925
|
+
cost_sum = df['花费'].sum()
|
926
|
+
df['花费占比'] = df.apply(lambda x: f'{round(x['花费']/cost_sum * 100, 1)}%', axis=1)
|
927
|
+
df['roi投产'] = df.apply(lambda x: f'{round(x['成交金额'] / x['花费'], 2)}' if x['花费'] > 0 else 0, axis=1)
|
928
|
+
df = pd.merge(df, df_set, left_on='商品id', right_on='商品id', how='left')
|
929
|
+
df.sort_values(['花费'], ascending=[False], ignore_index=True, inplace=True)
|
930
|
+
df = df.head(100)
|
931
|
+
df.reset_index(inplace=True)
|
932
|
+
df['index'] = df['index'] + 1
|
933
|
+
df.rename(columns={'index': '序号'}, inplace=True)
|
934
|
+
|
935
|
+
# 创建临时目录来存储图片
|
936
|
+
temp_dir = os.path.join(self.path, 'temp_images')
|
937
|
+
os.makedirs(temp_dir, exist_ok=True)
|
938
|
+
|
939
|
+
df_new = df.copy()
|
940
|
+
df_new = df_new.head(10)
|
941
|
+
pic_title1 = '商品花费占比'
|
942
|
+
img_file1 = os.path.join(temp_dir, f'{pic_title1}.png')
|
943
|
+
if not os.path.isfile(img_file1):
|
944
|
+
fig, ax = plt.subplots()
|
945
|
+
ax.pie(df_new['花费'], labels=df_new['商品id'], autopct='%1.1f%%', startangle=140)
|
946
|
+
ax.set_title(pic_title1) # 设置饼图的标题
|
947
|
+
ax.axis('equal') # 确保饼图是圆形的
|
948
|
+
plt.savefig(img_file1) # 保存饼图为PNG文件
|
949
|
+
plt.close()
|
950
|
+
|
951
|
+
# # 下载图片并保存到临时目录
|
952
|
+
# for i, url in enumerate(df['白底图']):
|
953
|
+
# item_id = df['商品id'].tolist()[i]
|
954
|
+
# img_path = os.path.join(temp_dir, f'image_{item_id}.jpg')
|
955
|
+
# if os.path.isfile(img_path):
|
956
|
+
# df.at[i, '白底图'] = img_path
|
957
|
+
# continue
|
958
|
+
# response = requests.get(url, headers={'User-Agent': ua_sj.get_ua()})
|
959
|
+
# if response.status_code == 200:
|
960
|
+
# with open(img_path, 'wb') as f:
|
961
|
+
# f.write(response.content)
|
962
|
+
# # 更新 DataFrame 中的图片地址列为本地路径
|
963
|
+
# df.at[i, '白底图'] = img_path
|
964
|
+
# else:
|
965
|
+
# print(f"Failed to download image at URL: {url}")
|
966
|
+
|
967
|
+
# 转换图片列
|
968
|
+
def convert_image_to_html(image_url_or_base64):
|
969
|
+
if os.path.isfile(image_url_or_base64):
|
970
|
+
# image_url_or_base64 是本地图片, 将图片路径转换为 Base64 编码的 <img> 标签
|
971
|
+
with open(image_url_or_base64, "rb") as image_file:
|
972
|
+
encoded_string = base64.b64encode(image_file.read()).decode('utf-8')
|
973
|
+
img_tag = (f'<img class="img" src="data:image/jpeg;base64,{encoded_string}" alt="Image">')
|
974
|
+
return img_tag
|
975
|
+
else:
|
976
|
+
# image_url_or_base64 是在线 url 或者 Base64编码的图片
|
977
|
+
return f'<img class="img" src="{image_url_or_base64}" alt="Image">'
|
978
|
+
|
979
|
+
# 应用这个函数到图片列
|
980
|
+
df['Image_HTML'] = df['白底图'].apply(convert_image_to_html)
|
981
|
+
|
982
|
+
local_file1 = os.path.join(self.path, '多店推广场景.html')
|
983
|
+
local_file2 = os.path.join(self.path, '多店推广场景.html')
|
984
|
+
local_file3 = os.path.join(self.path, '多店推广场景.html')
|
985
|
+
local_file4 = os.path.join(self.path, '多店推广场景.html')
|
986
|
+
local_file5 = os.path.join(self.path, '多店推广场景.html')
|
987
|
+
|
988
|
+
# 创建 HTML
|
989
|
+
html_template = """
|
990
|
+
<!DOCTYPE html>
|
991
|
+
<html lang="zh-CN">
|
992
|
+
<head>
|
993
|
+
<meta charset="UTF-8">
|
994
|
+
<meta http-equiv="Content-Type" content="text/html>
|
995
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
996
|
+
<title>商品推广数据</title>
|
997
|
+
<style>
|
998
|
+
body {
|
999
|
+
font-family: Arial, Helvetica, sans-serif;
|
1000
|
+
line-height: 1.6;
|
1001
|
+
margin: 0;
|
1002
|
+
padding: 0;
|
1003
|
+
background-color: #f4f4f4;
|
1004
|
+
}
|
1005
|
+
.centered-table {
|
1006
|
+
margin-top: 20px;
|
1007
|
+
margin-down: 100px;
|
1008
|
+
margin-left: auto;
|
1009
|
+
margin-right: auto;
|
1010
|
+
border-collapse: collapse; /* 可选,用于合并表格边框 */
|
1011
|
+
width: 60%; /* 设置表格宽度为父容器宽度的50%,或者你可以使用固定宽度 */
|
1012
|
+
}
|
1013
|
+
thead th {
|
1014
|
+
background-color: #f2f2f2; /* 设置表头背景颜色 */
|
1015
|
+
font-size: 16px; /* 增大表头字体 */
|
1016
|
+
font-weight: bold; /* 加粗表头字体 */
|
1017
|
+
text-align: center; /* 设置表头文本居中 */
|
1018
|
+
}
|
1019
|
+
caption {
|
1020
|
+
caption-side: top; /* 标题显示在表格上方 */
|
1021
|
+
font-size: 24px; /* 设置标题字体大小 */
|
1022
|
+
font-weight: bold; /* 设置标题字体加粗 */
|
1023
|
+
text-align: center; /* 设置标题文本居中 */
|
1024
|
+
margin-bottom: 20px; /* 为标题和表格之间添加间距 */
|
1025
|
+
}
|
1026
|
+
td, th {
|
1027
|
+
border: 1px solid #ddd; /* 单元格边框 */
|
1028
|
+
line-height: 1em; /* 设置行高为2倍的当前字体大小 */
|
1029
|
+
padding: 5 5px; /* 设置左右边距,内边距增加单元格的整体高度 */
|
1030
|
+
text-align: center; /* 设置文本对齐方式 */
|
1031
|
+
}
|
1032
|
+
img {
|
1033
|
+
width: 80px; /* 设置图片宽度 */
|
1034
|
+
height: auto; /* 高度自动调整以保持宽高比 */
|
1035
|
+
/* 如果需要垂直居中且图片是块级元素,则可以使用以下样式(但通常不是必需的,因为图片默认是内联元素)
|
1036
|
+
text-align: center; /* 水平居中(适用于内联或块级子元素) */
|
1037
|
+
display: block;
|
1038
|
+
margin: 0 auto; */
|
1039
|
+
}
|
1040
|
+
button {
|
1041
|
+
border: none;
|
1042
|
+
padding: 8px 12px;
|
1043
|
+
font-size: 14px;
|
1044
|
+
cursor: pointer;
|
1045
|
+
}
|
1046
|
+
.centered-text {
|
1047
|
+
position: fixed; /* 固定定位 */
|
1048
|
+
bottom: 15px; /* 距离页面顶部10px(可根据需要调整) */
|
1049
|
+
right: calc(25vw - 420px); /* 距离页面右侧1/4宽度减去文本自身的宽度和可能的边距(这里假设文本宽度和边距共10px,实际情况需根据文本样式调整) */
|
1050
|
+
/* 如果文本宽度未知或可变,可以只使用25vw并接受可能的溢出 */
|
1051
|
+
/* right: 25vw; */ /* 直接使用25vw定位,不考虑文本宽度 */
|
1052
|
+
padding: 3px 10px; /* 可选的文本内边距 */
|
1053
|
+
background-color: rgba(255, 255, 255, 0.8); /* 可选的背景色和透明度 */
|
1054
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 可选的阴影效果 */
|
1055
|
+
}
|
1056
|
+
|
1057
|
+
.image-container {
|
1058
|
+
position: absolute; /* 使用绝对定位 */
|
1059
|
+
width: 15%; /* 设置图片宽度 */
|
1060
|
+
left: 10px; /* 距离页面左侧20px */
|
1061
|
+
top: 50%; /* 距离页面顶部50% */
|
1062
|
+
transform: translateY(-50%); /* 向上移动自身高度的一半,以实现垂直居中 */
|
1063
|
+
}
|
1064
|
+
.image-container img {
|
1065
|
+
width: 20%; /* 设置图片宽度 */
|
1066
|
+
height: auto; /* 高度自动调整以保持宽高比 */
|
1067
|
+
/* 如果需要垂直居中且图片是块级元素,则可以使用以下样式(但通常不是必需的,因为图片默认是内联元素)*/
|
1068
|
+
display: flex;
|
1069
|
+
flex-direction: column;
|
1070
|
+
align-items: flex-start;
|
1071
|
+
}
|
1072
|
+
.button1 {
|
1073
|
+
border: none;
|
1074
|
+
padding: 8px 12px;
|
1075
|
+
font-size: 14px;
|
1076
|
+
cursor: pointer;
|
1077
|
+
position: absolute; /* 使用绝对定位 */
|
1078
|
+
left: 5%; /* 距离页面左侧20px */
|
1079
|
+
top: 10%; /* 距离页面顶部50% */
|
1080
|
+
}
|
1081
|
+
.button2 {
|
1082
|
+
border: none;
|
1083
|
+
padding: 8px 12px;
|
1084
|
+
font-size: 14px;
|
1085
|
+
cursor: pointer;
|
1086
|
+
position: absolute; /* 使用绝对定位 */
|
1087
|
+
left: 5%; /* 距离页面左侧20px */
|
1088
|
+
top: 17%; /* 距离页面顶部50% */
|
1089
|
+
}
|
1090
|
+
.button3 {
|
1091
|
+
border: none;
|
1092
|
+
padding: 8px 12px;
|
1093
|
+
font-size: 14px;
|
1094
|
+
cursor: pointer;
|
1095
|
+
position: absolute; /* 使用绝对定位 */
|
1096
|
+
left: 5%; /* 距离页面左侧20px */
|
1097
|
+
top: 24%; /* 距离页面顶部50% */
|
1098
|
+
}
|
1099
|
+
.button4 {
|
1100
|
+
border: none;
|
1101
|
+
padding: 8px 12px;
|
1102
|
+
font-size: 14px;
|
1103
|
+
cursor: pointer;
|
1104
|
+
position: absolute; /* 使用绝对定位 */
|
1105
|
+
left: 5%; /* 距离页面左侧20px */
|
1106
|
+
top: 31%; /* 距离页面顶部50% */
|
1107
|
+
}
|
1108
|
+
.button5 {
|
1109
|
+
border: none;
|
1110
|
+
padding: 8px 12px;
|
1111
|
+
font-size: 14px;
|
1112
|
+
cursor: pointer;
|
1113
|
+
position: absolute; /* 使用绝对定位 */
|
1114
|
+
left: 5%; /* 距离页面左侧20px */
|
1115
|
+
top: 38%; /* 距离页面顶部50% */
|
1116
|
+
}
|
1117
|
+
</style>
|
1118
|
+
</head>
|
1119
|
+
|
1120
|
+
<div class="div-button">
|
1121
|
+
<!-- 创建一个按钮 -->
|
1122
|
+
<button id="button1" class="button1">多店推广场景</button>
|
1123
|
+
<button id="button2" class="button2">店铺流量来源</button>
|
1124
|
+
<button id="button3" class="button3">达摩盘人群画像</button>
|
1125
|
+
<button id="button4" class="button4">商品人群画像</button>
|
1126
|
+
<button id="button5" class="button5">销售地域分布</button>
|
1127
|
+
</div>
|
1128
|
+
<script>
|
1129
|
+
// 获取按钮元素
|
1130
|
+
var tg = document.getElementById('button1');
|
1131
|
+
var dpll = document.getElementById('button2');
|
1132
|
+
var dmp1 = document.getElementById('button3');
|
1133
|
+
var dmp2 = document.getElementById('button4');
|
1134
|
+
var syj = document.getElementById('button5');
|
1135
|
+
tg.addEventListener('click', function() {
|
1136
|
+
window.open('{local_file1}', '_blank');
|
1137
|
+
});
|
1138
|
+
dpll.addEventListener('click', function() {
|
1139
|
+
window.open('{local_file2}', '_blank');
|
1140
|
+
});
|
1141
|
+
dmp1.addEventListener('click', function() {
|
1142
|
+
window.open('{local_file3}', '_blank');
|
1143
|
+
});
|
1144
|
+
dmp2.addEventListener('click', function() {
|
1145
|
+
window.open('{local_file4}', '_blank');
|
1146
|
+
});
|
1147
|
+
syj.addEventListener('click', function() {
|
1148
|
+
window.open('{local_file5}', '_blank');
|
1149
|
+
});
|
1150
|
+
</script>
|
1151
|
+
|
1152
|
+
<p class="centered-text">统计周期</p>
|
1153
|
+
<!--
|
1154
|
+
<img class="image-container" src="{img_file1}" alt="图片">
|
1155
|
+
-->
|
1156
|
+
<table class="centered-table">
|
1157
|
+
<thead>
|
1158
|
+
<caption>天猫商品推广数据</caption>
|
1159
|
+
<div>
|
1160
|
+
<tr>
|
1161
|
+
<th>序号</th>
|
1162
|
+
<th>商品</th>
|
1163
|
+
<th>店铺名称</th>
|
1164
|
+
<th>商品id</th>
|
1165
|
+
<th>花费</th>
|
1166
|
+
<th>花费占比</th>
|
1167
|
+
<th>点击量</th>
|
1168
|
+
<th>加购量</th>
|
1169
|
+
<th>成交笔数</th>
|
1170
|
+
<th>成交金额</th>
|
1171
|
+
<th>roi投产</th>
|
1172
|
+
</tr>
|
1173
|
+
</div>
|
1174
|
+
</thead>
|
1175
|
+
<tbody>
|
1176
|
+
{rows}
|
1177
|
+
</tbody>
|
1178
|
+
</table>
|
1179
|
+
</html>
|
1180
|
+
"""
|
1181
|
+
rows = []
|
1182
|
+
for _, row in df.iterrows():
|
1183
|
+
row_html = (f'<tr>'
|
1184
|
+
f'<td>{row["序号"]}</td>'
|
1185
|
+
f'<td>{row["Image_HTML"]}</td>'
|
1186
|
+
f'<td>{row["店铺名称"]}</td>'
|
1187
|
+
f'<td>{row["商品id"]}</td>'
|
1188
|
+
f'<td>{row["花费"]}</td>'
|
1189
|
+
f'<td>{row["花费占比"]}</td>'
|
1190
|
+
f'<td>{row["点击量"]}</td>'
|
1191
|
+
f'<td>{row["加购量"]}</td>'
|
1192
|
+
f'<td>{row["成交笔数"]}</td>'
|
1193
|
+
f'<td>{row["成交金额"]}</td>'
|
1194
|
+
f'<td>{row["roi投产"]}</td>'
|
1195
|
+
f'</tr>'
|
1196
|
+
)
|
1197
|
+
rows.append(row_html)
|
1198
|
+
|
1199
|
+
final_html = html_template.replace('{rows}', ''.join(rows))
|
1200
|
+
final_html = final_html.replace('统计周期', f'统计周期: {min_date} ~ {max_date}')
|
1201
|
+
final_html = final_html.replace('{local_file1}', local_file1)
|
1202
|
+
final_html = final_html.replace('{local_file2}', local_file2)
|
1203
|
+
final_html = final_html.replace('{local_file3}', local_file3)
|
1204
|
+
final_html = final_html.replace('{local_file4}', local_file4)
|
1205
|
+
final_html = final_html.replace('{local_file5}', local_file5)
|
1206
|
+
file = os.path.join(self.path, f'{filename}.html')
|
1207
|
+
with open(file, 'w', encoding='utf-8') as f:
|
1208
|
+
f.write(final_html)
|
865
1209
|
|
866
1210
|
|
867
1211
|
def main():
|
868
1212
|
ds = DataShow()
|
869
1213
|
|
1214
|
+
ds.item_show(
|
1215
|
+
db_name='聚合数据',
|
1216
|
+
table_list=None,
|
1217
|
+
pro_list=None,
|
1218
|
+
filename='天猫商品推广数据',
|
1219
|
+
start_date='2024-12-01',
|
1220
|
+
end_date=None,
|
1221
|
+
)
|
870
1222
|
# # 店铺流量来源
|
871
1223
|
# ds.dpll()
|
872
1224
|
# # 多店聚合推广数据
|
@@ -888,7 +1240,7 @@ def main():
|
|
888
1240
|
# last_date=None,
|
889
1241
|
# d_str='近30天',
|
890
1242
|
# )
|
891
|
-
|
1243
|
+
#
|
892
1244
|
# # 达摩盘人群画像
|
893
1245
|
# crowid_list = [
|
894
1246
|
# 40457166,
|
@@ -898,14 +1250,15 @@ def main():
|
|
898
1250
|
# crowd_id=crowid,
|
899
1251
|
# last_date=None,
|
900
1252
|
# )
|
1253
|
+
#
|
1254
|
+
# ds.pov_city(
|
1255
|
+
# db_name='生意经3',
|
1256
|
+
# filename='销售地域分布',
|
1257
|
+
# start_date='2024-12-01',
|
1258
|
+
# end_date=None,
|
1259
|
+
# percent=0.015,
|
1260
|
+
# )
|
901
1261
|
|
902
|
-
ds.pov_city(
|
903
|
-
db_name='生意经3',
|
904
|
-
filename='销售地域分布',
|
905
|
-
start_date='2024-12-01',
|
906
|
-
end_date=None,
|
907
|
-
percent=0.015,
|
908
|
-
)
|
909
1262
|
|
910
1263
|
if __name__ == '__main__':
|
911
1264
|
main()
|
@@ -2,7 +2,7 @@ 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
4
|
mdbq/aggregation/aggregation.py,sha256=-yzApnlqSN2L0E1YMu5ml-W827qpKQvWPCOI7jj2kzY,80264
|
5
|
-
mdbq/aggregation/datashow.py,sha256=
|
5
|
+
mdbq/aggregation/datashow.py,sha256=uOKuIODSMXX24HoFmkMWTyBwYdy4PjcDY1ys_vVmt6A,55103
|
6
6
|
mdbq/aggregation/optimize_data.py,sha256=RXIv7cACCgYyehAxMjUYi_S7rVyjIwXKWMaM3nduGtA,3068
|
7
7
|
mdbq/aggregation/query_data.py,sha256=9NALeHTP9tblOEPyntLBRtdroLG_qN9qWi34Hg4rXFM,178891
|
8
8
|
mdbq/bdup/__init__.py,sha256=AkhsGk81SkG1c8FqDH5tRq-8MZmFobVbN60DTyukYTY,28
|
@@ -34,7 +34,7 @@ mdbq/pbix/refresh_all.py,sha256=OBT9EewSZ0aRS9vL_FflVn74d4l2G00wzHiikCC4TC0,5926
|
|
34
34
|
mdbq/pbix/refresh_all_old.py,sha256=_pq3WSQ728GPtEG5pfsZI2uTJhU8D6ra-htIk1JXYzw,7192
|
35
35
|
mdbq/spider/__init__.py,sha256=RBMFXGy_jd1HXZhngB2T2XTvJqki8P_Fr-pBcwijnew,18
|
36
36
|
mdbq/spider/aikucun.py,sha256=v7VO5gtEXR6_4Q6ujbTyu1FHu7TXHcwSQ6hIO249YH0,22208
|
37
|
-
mdbq-3.4.
|
38
|
-
mdbq-3.4.
|
39
|
-
mdbq-3.4.
|
40
|
-
mdbq-3.4.
|
37
|
+
mdbq-3.4.5.dist-info/METADATA,sha256=nZwqAYPyDMGAk4hSyRQZRj2sDcRFbCaRp9EEO-GEoR8,243
|
38
|
+
mdbq-3.4.5.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
39
|
+
mdbq-3.4.5.dist-info/top_level.txt,sha256=2FQ-uLnCSB-OwFiWntzmwosW3X2Xqsg0ewh1axsaylA,5
|
40
|
+
mdbq-3.4.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|