learnstat 0.2.1__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 (36) hide show
  1. {learnstat-0.2.1 → learnstat-0.2.2}/PKG-INFO +13 -17
  2. {learnstat-0.2.1 → learnstat-0.2.2}/README.md +11 -16
  3. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat/__init__.py +1 -1
  4. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat/cli.py +324 -331
  5. learnstat-0.2.2/learnstat/guide.py +225 -0
  6. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat/setup.py +305 -308
  7. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat.egg-info/PKG-INFO +13 -17
  8. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat.egg-info/SOURCES.txt +1 -0
  9. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat.egg-info/requires.txt +1 -0
  10. {learnstat-0.2.1 → learnstat-0.2.2}/pyproject.toml +2 -1
  11. {learnstat-0.2.1 → learnstat-0.2.2}/tests/test_ai_config.py +2 -59
  12. learnstat-0.2.2/tests/test_guide.py +109 -0
  13. learnstat-0.2.1/learnstat/guide.py +0 -266
  14. {learnstat-0.2.1 → learnstat-0.2.2}/LICENSE +0 -0
  15. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat/advisor.py +0 -0
  16. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat/commands.py +0 -0
  17. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat/config.py +0 -0
  18. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat/ipython_ext.py +0 -0
  19. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat/knowledge.py +0 -0
  20. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat/llm.py +0 -0
  21. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat/memory.py +0 -0
  22. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat/profile.py +0 -0
  23. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat/providers.py +0 -0
  24. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat/recovery.py +0 -0
  25. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat/safety.py +0 -0
  26. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat/session.py +0 -0
  27. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat/suggestions.py +0 -0
  28. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat.egg-info/dependency_links.txt +0 -0
  29. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat.egg-info/entry_points.txt +0 -0
  30. {learnstat-0.2.1 → learnstat-0.2.2}/learnstat.egg-info/top_level.txt +0 -0
  31. {learnstat-0.2.1 → learnstat-0.2.2}/setup.cfg +0 -0
  32. {learnstat-0.2.1 → learnstat-0.2.2}/tests/test_advisor.py +0 -0
  33. {learnstat-0.2.1 → learnstat-0.2.2}/tests/test_commands.py +0 -0
  34. {learnstat-0.2.1 → learnstat-0.2.2}/tests/test_ipython.py +0 -0
  35. {learnstat-0.2.1 → learnstat-0.2.2}/tests/test_profile_memory.py +0 -0
  36. {learnstat-0.2.1 → 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.1
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,32 +55,27 @@ pip install -e ".[all]" # pandas, numpy, matplotlib, scipy, ipython
54
55
  pip install -e . # core only: profiling, rules, recovery
55
56
  ```
56
57
 
57
- ### Quick start (no commands to learn)
58
+ ### Quick start
58
59
 
59
60
  ```bash
60
61
  pip install learnstat
61
62
  learnstat
62
63
  ```
63
64
 
64
- That is all. learnstat walks you through everything in plain English:
65
-
66
- 1. **Pick your AI** (optional): choose the company, paste your key, choose a model. learnstat tests it and says OK or what is wrong.
67
- 2. **Choose your data**: press Enter and a normal file window opens (CSV or Excel), or drag the file into the terminal.
68
- 3. **Pick what to do from a menu** by typing a number:
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:
69
68
 
70
69
  ```
71
- 1) See a summary of my data
72
- 2) Ask the AI a question about my data
73
- 3) Get suggestions for a Python script
74
- 4) Run a Python script with automatic help
75
- 5) Write Python code here (my data is ready as "df")
76
- 6) Learn a statistics topic
77
- 7) Load a different data file
78
- 8) Change the AI (company, key, model)
79
- 9) Help
70
+ >>> df.groupby("country")["income"].mean()
71
+ >>> np.log(df["income"]).describe()
80
72
  ```
81
73
 
82
- Nothing else needs to be memorised: every option asks for what it needs, and option 9 explains the menu. Skip the AI and everything still works with built-in rules.
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
+ ```
83
79
 
84
80
  ### Add an AI (optional)
85
81
 
@@ -24,32 +24,27 @@ 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 (no commands to learn)
27
+ ### Quick start
28
28
 
29
29
  ```bash
30
30
  pip install learnstat
31
31
  learnstat
32
32
  ```
33
33
 
34
- That is all. learnstat walks you through everything in plain English:
35
-
36
- 1. **Pick your AI** (optional): choose the company, paste your key, choose a model. learnstat tests it and says OK or what is wrong.
37
- 2. **Choose your data**: press Enter and a normal file window opens (CSV or Excel), or drag the file into the terminal.
38
- 3. **Pick what to do from a menu** by typing a number:
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:
39
37
 
40
38
  ```
41
- 1) See a summary of my data
42
- 2) Ask the AI a question about my data
43
- 3) Get suggestions for a Python script
44
- 4) Run a Python script with automatic help
45
- 5) Write Python code here (my data is ready as "df")
46
- 6) Learn a statistics topic
47
- 7) Load a different data file
48
- 8) Change the AI (company, key, model)
49
- 9) Help
39
+ >>> df.groupby("country")["income"].mean()
40
+ >>> np.log(df["income"]).describe()
50
41
  ```
51
42
 
52
- Nothing else needs to be memorised: every option asks for what it needs, and option 9 explains the menu. Skip the AI and everything still works with built-in rules.
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
+ ```
53
48
 
54
49
  ### Add an AI (optional)
55
50
 
@@ -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.1"
24
+ __version__ = "0.2.2"
25
25
 
26
26
 
27
27
  def read_csv(path, name: str | None = None, **kwargs):