thinknotdraw 0.0.1__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.
@@ -0,0 +1,7 @@
1
+ # __init__.py
2
+ import numpy as np
3
+ import pandas as pd
4
+ import matplotlib.pyplot as plt
5
+ import seaborn as sns
6
+
7
+ __all__ = ["np", "pd", "plt", "sns"]
@@ -0,0 +1,55 @@
1
+ def fast_draw(x, kind="con", gtype="plot", line=False, col=True, name=None):
2
+ if kind == "con":
3
+ if gtype == "plot":
4
+ if col == False:
5
+ plt.figure(figsize=(6, 4))
6
+ sns.kdeplot(data=x, bw_adjust=2, color="black", linewidth=1.5)
7
+ plt.xlabel("Значение")
8
+ plt.ylabel("Вероятность")
9
+ plt.grid(True, alpha=0.5)
10
+ plt.title(name)
11
+ plt.show()
12
+ elif col == True and line == True:
13
+ plt.figure(figsize=(6, 4))
14
+ sns.histplot(data=x, stat="density", color="gray")
15
+ sns.kdeplot(data=x, bw_adjust=2, color="black", linewidth=1.5)
16
+ plt.xlabel("Значение")
17
+ plt.ylabel("Вероятность")
18
+ plt.grid(True, alpha=0.5)
19
+ plt.title(name)
20
+ plt.show()
21
+ else:
22
+ plt.figure(figsize=(6, 4))
23
+ sns.histplot(data=x, stat="density", color="gray")
24
+ plt.xlabel("Значение")
25
+ plt.ylabel("Вероятность")
26
+ plt.grid(True, alpha=0.5)
27
+ plt.title(name)
28
+ plt.show()
29
+
30
+ else:
31
+ plt.figure(figsize=(6, 4))
32
+ sns.ecdfplot(data=x, color="black", linewidth=1.5)
33
+ plt.xlabel("Значение")
34
+ plt.ylabel("Вероятность")
35
+ plt.grid(True, alpha=0.5)
36
+ plt.title(name)
37
+ plt.show()
38
+ else:
39
+ if gtype == "plot":
40
+ values, counts = np.unique(x, return_counts=True)
41
+ p = counts / counts.sum()
42
+ plt.figure(figsize=(6, 4))
43
+ plt.bar(values, p, color="gray", edgecolor="black", width=0.8)
44
+ plt.xlabel("Значение")
45
+ plt.ylabel("Вероятность")
46
+ plt.title(name)
47
+ plt.show()
48
+ else:
49
+ plt.figure(figsize=(6, 4))
50
+ sns.ecdfplot(data=x, color="black", linewidth=1.5)
51
+ plt.xlabel("Значение")
52
+ plt.ylabel("Вероятность")
53
+ plt.grid(True, alpha=0.5)
54
+ plt.title(name)
55
+ plt.show()
@@ -0,0 +1,39 @@
1
+ Metadata-Version: 2.1
2
+ Name: thinknotdraw
3
+ Version: 0.0.1
4
+ Summary: fast statistical draw in one line
5
+ Author: gorodok
6
+ Author-email: danyagorodnov@yandex.ru
7
+ Keywords: chart statistics visualisation
8
+ Requires-Python: >=3.6
9
+ Description-Content-Type: text/markdown
10
+ Requires-Dist: requests >=2.25.1
11
+
12
+ # Speed File Library #
13
+
14
+ ## What is this? ##
15
+ The module allows you to create python visualisation in just one line of code
16
+
17
+ ## Quick Guide ##
18
+ The module is based on the following structure:
19
+
20
+
21
+ fast_draw(x, gtype='plot', kind='con', line=False, col=True, name='None')
22
+
23
+ x - your data
24
+
25
+ gtype (plot/func) - distribution plot or function
26
+
27
+ kind (con/dis) - discrete or continuous data
28
+
29
+ line (True/False) - create line
30
+
31
+ col (True/False) - create columns
32
+
33
+ name - name above ghaph
34
+
35
+ ----
36
+
37
+
38
+ ## Developer ##
39
+ My site: [link](https://github.com/txnxity)
@@ -0,0 +1,6 @@
1
+ thinknotdraw/__init__.py,sha256=asQWrX5kP5dMpMxSRe7iMD6gLtzARZ9SZ12_B_uT7co,145
2
+ thinknotdraw/functions.py,sha256=-hd5i48gv1lOtE7fC4EQ5ELbIW9h7R2rmgQGl7h7cDw,2439
3
+ thinknotdraw-0.0.1.dist-info/METADATA,sha256=0diTE0msVA9_reuhOdAOt7iLK4eBoOYzMy1HZ-wWLB0,841
4
+ thinknotdraw-0.0.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
5
+ thinknotdraw-0.0.1.dist-info/top_level.txt,sha256=nIdle65g6OwHMnQVOlHH-ih19JVOYBqJXz-_zgfpWHQ,13
6
+ thinknotdraw-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.42.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ thinknotdraw