xlin 0.1.13__py2.py3-none-any.whl → 0.1.14__py2.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.
xlin/statistic.py
CHANGED
@@ -57,7 +57,7 @@ def draw_histogram(data: list[int], bins=30, title="Data Distribution Analysis")
|
|
57
57
|
mean = np.mean(data)
|
58
58
|
median = np.median(data)
|
59
59
|
std = np.std(data)
|
60
|
-
q25, q75 = np.percentile(data, [25, 75])
|
60
|
+
q25, q75, q80, q90 = np.percentile(data, [25, 75, 80, 90])
|
61
61
|
data_range = (np.min(data), np.max(data))
|
62
62
|
|
63
63
|
# 创建图形和坐标轴
|
@@ -79,6 +79,8 @@ def draw_histogram(data: list[int], bins=30, title="Data Distribution Analysis")
|
|
79
79
|
# 添加四分位线
|
80
80
|
plt.axvline(q25, color="purple", linestyle=":", alpha=0.8, label=f"25th Percentile ({q25:.2f})")
|
81
81
|
plt.axvline(q75, color="purple", linestyle=":", alpha=0.8, label=f"75th Percentile ({q75:.2f})")
|
82
|
+
plt.axvline(q80, color="purple", linestyle=":", alpha=0.8, label=f"80th Percentile ({q80:.2f})")
|
83
|
+
plt.axvline(q90, color="purple", linestyle=":", alpha=0.8, label=f"90th Percentile ({q90:.2f})")
|
82
84
|
|
83
85
|
# 添加统计摘要
|
84
86
|
stats_text = f"""\
|
@@ -4,11 +4,11 @@ xlin/jsonl.py,sha256=DvVM241a9VgQlp5WIMPRv-JIolT0RdSxw47IG_fc7xE,6690
|
|
4
4
|
xlin/metric.py,sha256=N7wJ35y-C-IaBr1I1CJ_37lTG7gA69zmn9Xg6xSwKoI,1690
|
5
5
|
xlin/multiprocess_mapping.py,sha256=pmzyEUYpbpIZ_ezyvWWWRpr7D7n4t3E3jW1nGXBbVck,7652
|
6
6
|
xlin/read_as_dataframe.py,sha256=P8bOYW-zm8uGhehCldZI9ZQhHHLGqDPDbSMNWI2li6g,8885
|
7
|
-
xlin/statistic.py,sha256=
|
7
|
+
xlin/statistic.py,sha256=kp2P-Hr5Kb-R3dNgUXQieG8--iitjidg7SJuSiCpKdM,4131
|
8
8
|
xlin/util.py,sha256=SOQUh506GQlljJYLYuI6nScSTOrgRQnMq2xfxSvKIlI,11303
|
9
9
|
xlin/xls2xlsx.py,sha256=5zfcM0gmunFQOcOj9nYd9Dj0HMhU7-cPKnPIy6Ot9iU,930
|
10
10
|
xlin/yaml.py,sha256=kICi7G3Td5q2MaSXXt85qNTWoHMgjzt7pvn7r3C4dME,183
|
11
|
-
xlin-0.1.
|
12
|
-
xlin-0.1.
|
13
|
-
xlin-0.1.
|
14
|
-
xlin-0.1.
|
11
|
+
xlin-0.1.14.dist-info/LICENSE,sha256=KX0dDCYlO4DskqMZY8qeY94EZMrDRNnNqlGLkXVlKyM,1063
|
12
|
+
xlin-0.1.14.dist-info/METADATA,sha256=JPtTfnxHUAkSQzNhTBw9R5J0MP0vnNvQ_yKZ7IUJRRs,1140
|
13
|
+
xlin-0.1.14.dist-info/WHEEL,sha256=aiTauIPAnqOMBuVimVqk4bevIILHLWXNdkzTocSR-tg,92
|
14
|
+
xlin-0.1.14.dist-info/RECORD,,
|
File without changes
|
File without changes
|