py2ls 0.1.10.27__py3-none-any.whl → 0.2.2__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.
- py2ls/data/sns_info.json +74 -0
- py2ls/data/usages_sns.json +25 -0
- py2ls/ips.py +1283 -480
- py2ls/plot.py +809 -31
- py2ls/stats.py +18 -9
- {py2ls-0.1.10.27.dist-info → py2ls-0.2.2.dist-info}/METADATA +1 -1
- {py2ls-0.1.10.27.dist-info → py2ls-0.2.2.dist-info}/RECORD +8 -6
- {py2ls-0.1.10.27.dist-info → py2ls-0.2.2.dist-info}/WHEEL +0 -0
py2ls/stats.py
CHANGED
@@ -95,7 +95,7 @@ def FuncStars(
|
|
95
95
|
fontname=fontname,
|
96
96
|
color=symbolcolor,
|
97
97
|
)
|
98
|
-
elif 0
|
98
|
+
elif 0 <= pval <= 0.001:
|
99
99
|
ax.text(
|
100
100
|
xcenter,
|
101
101
|
y_loc,
|
@@ -107,7 +107,7 @@ def FuncStars(
|
|
107
107
|
color=symbolcolor,
|
108
108
|
)
|
109
109
|
# lines indicators
|
110
|
-
if linego and 0
|
110
|
+
if linego and 0 <= pval <= 0.05:
|
111
111
|
# horizontal line
|
112
112
|
if yscale <= 0.99:
|
113
113
|
ax.plot(
|
@@ -659,17 +659,26 @@ def corr_pair(pair):
|
|
659
659
|
|
660
660
|
|
661
661
|
def check_normality(data, verbose=True):
|
662
|
-
|
663
|
-
|
662
|
+
if len(data)<=5000:
|
663
|
+
# Shapiro-Wilk test is designed to test the normality of a small sample, typically less than 5000 observations.
|
664
|
+
stat_shapiro, pval4norm = stats.shapiro(data)
|
665
|
+
method='Shapiro-Wilk test'
|
666
|
+
else:
|
667
|
+
from scipy.stats import kstest, zscore
|
668
|
+
data_scaled = zscore(data) # a standard normal distribution(mean=0,sd=1)
|
669
|
+
stat_kstest, pval4norm = kstest(data_scaled, 'norm')
|
670
|
+
method='Kolmogorov–Smirnov test'
|
671
|
+
if pval4norm >= 0.05:
|
664
672
|
Normality = True
|
665
673
|
else:
|
666
674
|
Normality = False
|
667
675
|
if verbose:
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
676
|
+
print(f"\'{method}' was used to test for normality")
|
677
|
+
(
|
678
|
+
print("\nnormally distributed")
|
679
|
+
if Normality
|
680
|
+
else print(f"\n NOT normally distributed\n")
|
681
|
+
)
|
673
682
|
return Normality
|
674
683
|
|
675
684
|
|
@@ -181,6 +181,7 @@ py2ls/data/db2ls_sql_chtsht.json,sha256=ls9d7Sm8TLeujanWHfHlWhU85Qz1KnAizO_9X3wU
|
|
181
181
|
py2ls/data/docs_links.json,sha256=kXgbbWo0b8bfV4n6iuuUNLnZipIyLzokUO6Lzmf7nO4,101829
|
182
182
|
py2ls/data/email/email_html_template.html,sha256=UIg3aixWfdNsvVx-j2dX1M5N3G-6DgrnV1Ya1cLjiUQ,2809
|
183
183
|
py2ls/data/lang_code_iso639.json,sha256=qZiU7H2RLJjDMXK22C-jhwzLJCI5vKmampjB1ys4ek4,2157
|
184
|
+
py2ls/data/sns_info.json,sha256=pEzdg2bhMkwQHZpXx02_7zAP7NvRoCc0Le8PN6Uv0Vk,4074
|
184
185
|
py2ls/data/styles/example/style1.pdf,sha256=Pt_qQJ5kiCSIPiz3TWSwEffHUdj75kKXnZ4MPqpEx4I,29873
|
185
186
|
py2ls/data/styles/example/style2.pdf,sha256=0xduPLPulET38LEP2V2H_q70wqlrrBEo8ttqO-FMrfQ,25449
|
186
187
|
py2ls/data/styles/example/style3.pdf,sha256=010-Pm2BUowAt0XDkJWZTR5rAszLqmI1DO3209sIFWs,65536
|
@@ -202,20 +203,21 @@ py2ls/data/styles/style6.json,sha256=tu-MYOT9x5Rorc-2IK6sy-J-frmz0RNdm65XAsDQKX4
|
|
202
203
|
py2ls/data/styles/style7.json,sha256=StdUFwIVrS7T_6CDrADHMorzc0WZFWBM7IyYdO1TPHg,4447
|
203
204
|
py2ls/data/styles/style8.json,sha256=8XUgkZtew8ebvjbAHlDHCSWUqNra3ktDvMCO4vNh-CM,4456
|
204
205
|
py2ls/data/styles/style9.json,sha256=PLxvntbH_kfzZlnCTtCEAUVBGi5m6Lngb9C01rArQog,4769
|
206
|
+
py2ls/data/usages_sns.json,sha256=Vu2kGIIMxxWxJ1kW0Ov7mq47DQwZa_-gwsXiW72A2ag,7788
|
205
207
|
py2ls/db2ls.py,sha256=MMfFX47aIPIyu7fU9aPvX9lbPRPYOpJ_VXwlnWk-8qo,13615
|
206
208
|
py2ls/doc.py,sha256=xN3g1OWfoaGUhikbJ0NqbN5eKy1VZVvWwRlhHMgyVEc,4243
|
207
209
|
py2ls/export_requirements.py,sha256=x2WgUF0jYKz9GfA1MVKN-MdsM-oQ8yUeC6Ua8oCymio,2325
|
208
210
|
py2ls/freqanalysis.py,sha256=F4218VSPbgL5tnngh6xNCYuNnfR-F_QjECUUxrPYZss,32594
|
209
211
|
py2ls/ich2ls.py,sha256=3E9R8oVpyYZXH5PiIQgT3CN5NxLe4Dwtm2LwaeacE6I,21381
|
210
|
-
py2ls/ips.py,sha256=
|
212
|
+
py2ls/ips.py,sha256=HzdfzVViyIkgarkU7WWTtgXO3zS_ZwwDISGaKJUQ49E,193975
|
211
213
|
py2ls/netfinder.py,sha256=vgOOMhzwbjRuLWMAPyf_kh3HoOhsJ9dlA-tCkMf7kNU,55371
|
212
214
|
py2ls/ocr.py,sha256=5lhUbJufIKRSOL6wAWVLEo8TqMYSjoI_Q-IO-_4u3DE,31419
|
213
|
-
py2ls/plot.py,sha256=
|
215
|
+
py2ls/plot.py,sha256=N6Rap4kX5xhae__WQG_YkBU8uSOH94IAxmoxZm2Wo9Q,129280
|
214
216
|
py2ls/setuptools-70.1.0-py3-none-any.whl,sha256=2bi3cUVal8ip86s0SOvgspteEF8SKLukECi-EWmFomc,882588
|
215
217
|
py2ls/sleep_events_detectors.py,sha256=bQA3HJqv5qnYKJJEIhCyhlDtkXQfIzqksnD0YRXso68,52145
|
216
|
-
py2ls/stats.py,sha256=
|
218
|
+
py2ls/stats.py,sha256=DMoJd8Z5YV9T1wB-4P52F5K5scfVK55DT8UP4Twcebo,38627
|
217
219
|
py2ls/translator.py,sha256=zBeq4pYZeroqw3DT-5g7uHfVqKd-EQptT6LJ-Adi8JY,34244
|
218
220
|
py2ls/wb_detector.py,sha256=7y6TmBUj9exCZeIgBAJ_9hwuhkDh1x_-yg4dvNY1_GQ,6284
|
219
|
-
py2ls-0.
|
220
|
-
py2ls-0.
|
221
|
-
py2ls-0.
|
221
|
+
py2ls-0.2.2.dist-info/METADATA,sha256=IWoyyv2E8mcEblmBAyXYkVvrPncuRqSV1Ys-CpENv6Y,20036
|
222
|
+
py2ls-0.2.2.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
223
|
+
py2ls-0.2.2.dist-info/RECORD,,
|
File without changes
|