learnstat 0.2.0__tar.gz → 0.2.2__tar.gz

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.
Files changed (35) hide show
  1. {learnstat-0.2.0 → learnstat-0.2.2}/PKG-INFO +25 -1
  2. {learnstat-0.2.0 → learnstat-0.2.2}/README.md +23 -0
  3. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat/__init__.py +1 -1
  4. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat/cli.py +324 -338
  5. learnstat-0.2.2/learnstat/guide.py +225 -0
  6. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat/setup.py +305 -308
  7. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat.egg-info/PKG-INFO +25 -1
  8. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat.egg-info/SOURCES.txt +2 -0
  9. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat.egg-info/requires.txt +1 -0
  10. {learnstat-0.2.0 → learnstat-0.2.2}/pyproject.toml +2 -1
  11. {learnstat-0.2.0 → learnstat-0.2.2}/tests/test_ai_config.py +8 -2
  12. learnstat-0.2.2/tests/test_guide.py +109 -0
  13. {learnstat-0.2.0 → learnstat-0.2.2}/LICENSE +0 -0
  14. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat/advisor.py +0 -0
  15. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat/commands.py +0 -0
  16. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat/config.py +0 -0
  17. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat/ipython_ext.py +0 -0
  18. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat/knowledge.py +0 -0
  19. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat/llm.py +0 -0
  20. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat/memory.py +0 -0
  21. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat/profile.py +0 -0
  22. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat/providers.py +0 -0
  23. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat/recovery.py +0 -0
  24. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat/safety.py +0 -0
  25. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat/session.py +0 -0
  26. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat/suggestions.py +0 -0
  27. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat.egg-info/dependency_links.txt +0 -0
  28. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat.egg-info/entry_points.txt +0 -0
  29. {learnstat-0.2.0 → learnstat-0.2.2}/learnstat.egg-info/top_level.txt +0 -0
  30. {learnstat-0.2.0 → learnstat-0.2.2}/setup.cfg +0 -0
  31. {learnstat-0.2.0 → learnstat-0.2.2}/tests/test_advisor.py +0 -0
  32. {learnstat-0.2.0 → learnstat-0.2.2}/tests/test_commands.py +0 -0
  33. {learnstat-0.2.0 → learnstat-0.2.2}/tests/test_ipython.py +0 -0
  34. {learnstat-0.2.0 → learnstat-0.2.2}/tests/test_profile_memory.py +0 -0
  35. {learnstat-0.2.0 → learnstat-0.2.2}/tests/test_recovery.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: learnstat
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: An AI-assisted learning companion for statistical analysis with pandas, NumPy, SciPy and Matplotlib.
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://github.com/umorfaruksupto/leanstat
@@ -11,6 +11,7 @@ Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
12
  Requires-Dist: pandas>=2.0
13
13
  Requires-Dist: numpy>=1.24
14
+ Requires-Dist: openpyxl>=3.1
14
15
  Provides-Extra: viz
15
16
  Requires-Dist: matplotlib>=3.7; extra == "viz"
16
17
  Provides-Extra: stats
@@ -54,6 +55,28 @@ pip install -e ".[all]" # pandas, numpy, matplotlib, scipy, ipython
54
55
  pip install -e . # core only: profiling, rules, recovery
55
56
  ```
56
57
 
58
+ ### Quick start
59
+
60
+ ```bash
61
+ pip install learnstat
62
+ learnstat
63
+ ```
64
+
65
+ 1. Choose your AI company, paste the key, pick a model. learnstat tests it and says OK or what is wrong (optional; skip it and everything works offline).
66
+ 2. Press Enter to pick your CSV or Excel file in a normal window.
67
+ 3. You are at a Python prompt with `df`, `pd` (pandas) and `np` (NumPy) ready. Write ordinary pandas / NumPy code:
68
+
69
+ ```
70
+ >>> df.groupby("country")["income"].mean()
71
+ >>> np.log(df["income"]).describe()
72
+ ```
73
+
74
+ learnstat suggests better statistics and charts as you go, and explains and fixes simple mistakes. Type `/help` for the shortcuts, or `menu` for a one-line menu:
75
+
76
+ ```
77
+ 1 summary | 2 ask AI | 3 check script | 4 run script | 5 code | 6 learn | 7 load data | 8 AI | ? help | q quit
78
+ ```
79
+
57
80
  ### Add an AI (optional)
58
81
 
59
82
  Just run `learnstat`. If no AI is set up yet it offers a guided setup, and you can repeat it any time with `learnstat setup` (or `/ai` inside a session):
@@ -177,6 +200,7 @@ learnstat/
177
200
  config.py saved AI accounts: provider, api_key, base_url, model
178
201
  providers.py presets for the AI companies
179
202
  setup.py guided terminal setup (company -> key -> model -> check)
203
+ guide.py the numbered home menu students use
180
204
  session.py ties it together; read_csv/track/check/run
181
205
  commands.py slash commands
182
206
  ipython_ext.py %load_ext learnstat
@@ -24,6 +24,28 @@ pip install -e ".[all]" # pandas, numpy, matplotlib, scipy, ipython
24
24
  pip install -e . # core only: profiling, rules, recovery
25
25
  ```
26
26
 
27
+ ### Quick start
28
+
29
+ ```bash
30
+ pip install learnstat
31
+ learnstat
32
+ ```
33
+
34
+ 1. Choose your AI company, paste the key, pick a model. learnstat tests it and says OK or what is wrong (optional; skip it and everything works offline).
35
+ 2. Press Enter to pick your CSV or Excel file in a normal window.
36
+ 3. You are at a Python prompt with `df`, `pd` (pandas) and `np` (NumPy) ready. Write ordinary pandas / NumPy code:
37
+
38
+ ```
39
+ >>> df.groupby("country")["income"].mean()
40
+ >>> np.log(df["income"]).describe()
41
+ ```
42
+
43
+ learnstat suggests better statistics and charts as you go, and explains and fixes simple mistakes. Type `/help` for the shortcuts, or `menu` for a one-line menu:
44
+
45
+ ```
46
+ 1 summary | 2 ask AI | 3 check script | 4 run script | 5 code | 6 learn | 7 load data | 8 AI | ? help | q quit
47
+ ```
48
+
27
49
  ### Add an AI (optional)
28
50
 
29
51
  Just run `learnstat`. If no AI is set up yet it offers a guided setup, and you can repeat it any time with `learnstat setup` (or `/ai` inside a session):
@@ -147,6 +169,7 @@ learnstat/
147
169
  config.py saved AI accounts: provider, api_key, base_url, model
148
170
  providers.py presets for the AI companies
149
171
  setup.py guided terminal setup (company -> key -> model -> check)
172
+ guide.py the numbered home menu students use
150
173
  session.py ties it together; read_csv/track/check/run
151
174
  commands.py slash commands
152
175
  ipython_ext.py %load_ext learnstat
@@ -21,7 +21,7 @@ from .recovery import Executor, RunResult
21
21
  from .session import Session, get_session, set_session
22
22
  from .suggestions import Suggestion
23
23
 
24
- __version__ = "0.2.0"
24
+ __version__ = "0.2.2"
25
25
 
26
26
 
27
27
  def read_csv(path, name: str | None = None, **kwargs):