autodataagent 1.0.0__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.
- autodataagent-1.0.0/PKG-INFO +135 -0
- autodataagent-1.0.0/README.md +116 -0
- autodataagent-1.0.0/autodataagent.egg-info/PKG-INFO +135 -0
- autodataagent-1.0.0/autodataagent.egg-info/SOURCES.txt +10 -0
- autodataagent-1.0.0/autodataagent.egg-info/dependency_links.txt +1 -0
- autodataagent-1.0.0/autodataagent.egg-info/requires.txt +9 -0
- autodataagent-1.0.0/autodataagent.egg-info/top_level.txt +2 -0
- autodataagent-1.0.0/autodataagent.py +9 -0
- autodataagent-1.0.0/data_agent.py +1553 -0
- autodataagent-1.0.0/pyproject.toml +25 -0
- autodataagent-1.0.0/setup.cfg +4 -0
- autodataagent-1.0.0/setup.py +28 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: autodataagent
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Automated CSV Data Analysis & ML Diagnostics Agent for Jupyter Notebooks
|
|
5
|
+
Author: AutoDataAgent Team
|
|
6
|
+
Keywords: data-analysis,jupyter,visualization,machine-learning,eda,plotly,shap
|
|
7
|
+
Requires-Python: >=3.8
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
Requires-Dist: pandas>=1.5.0
|
|
10
|
+
Requires-Dist: numpy>=1.20.0
|
|
11
|
+
Requires-Dist: plotly>=5.0.0
|
|
12
|
+
Requires-Dist: matplotlib>=3.5.0
|
|
13
|
+
Requires-Dist: seaborn>=0.12.0
|
|
14
|
+
Requires-Dist: scikit-learn>=1.0.0
|
|
15
|
+
Requires-Dist: shap>=0.40.0
|
|
16
|
+
Requires-Dist: ipywidgets>=8.0.0
|
|
17
|
+
Requires-Dist: kaleido>=0.2.0
|
|
18
|
+
Dynamic: requires-python
|
|
19
|
+
|
|
20
|
+
# ๐ค Automated Data Analysis & ML Diagnostics Agent for Jupyter Notebook
|
|
21
|
+
|
|
22
|
+
Jupyter Notebook ke andar **Exploratory Data Analysis (EDA)** aur **Machine Learning (ML) Model Diagnostics** ke liye ek all-in-one AI assistant.
|
|
23
|
+
|
|
24
|
+
Aapko bas CSV file provide karni hai โ agent aapse **Step 1: First Column** select karwayega, fir **Step 2: Second Column**, fir **Step 3 mein 3 organized tabs** ke andar **23 different plot types** offer karega, aur ek click mein **Interactive Visualizations (Plotly)**, **Statistical & ML Insights**, aur **Python Code** generate karke dega!
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## ๐ Naye Features (Multi-Plot & Direct Download)
|
|
29
|
+
|
|
30
|
+
### 1. โ Ek Se Zyada Plots Banayein (Active Plots Gallery)
|
|
31
|
+
- Pehla plot banne ke baad purana plot delete ya overwrite nahi hoga.
|
|
32
|
+
- Plot ke theek niche **"โ Create Another Plot (Naya Plot Banayein)"** button milta hai.
|
|
33
|
+
- Click karte hi aap naye columns aur naya plot choose kar sakte hain โ aur naya plot neeche append ho jayega!
|
|
34
|
+
- Is tarah aap ek hi notebook session mein kitne bhi plots (Plot #1, Plot #2, Plot #3...) stack karke compare kar sakte hain.
|
|
35
|
+
|
|
36
|
+
### 2. ๐ฅ 1-Click Direct Download (PNG & HTML)
|
|
37
|
+
- Har generated plot ke theek upar dedicated download buttons milte hain:
|
|
38
|
+
- ๐ฅ **Download PNG (High-Res Image)** โ Publication-ready high resolution 2x scale image directly download hoti hai.
|
|
39
|
+
- ๐ **Download Interactive HTML** โ Standalone browser file jisme zoom, pan, hover tooltips sab preserved rehte hain.
|
|
40
|
+
- Files aapke local `exports/` folder mein bhi automatically save hoti hain.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## ๐ Master Catalog of 23 Supported Plot Types
|
|
45
|
+
|
|
46
|
+
### ๐ Category A: Exploratory Data Analysis & Statistical Plots (16 Plots)
|
|
47
|
+
1. ๐ **Line Plot (`line_plot`)** โ Trends, sequential progression, aur time-series.
|
|
48
|
+
2. ๐ **Bar Plot (`bar_plot`)** โ Categories ka comparison (Mean / Sum aggregation ya counts).
|
|
49
|
+
3. ๐ **Horizontal Bar Plot (`horizontal_bar`)** โ Categories ki clean horizontal ranking.
|
|
50
|
+
4. ๐ถ **Grouped Bar Plot (`grouped_bar`)** โ Multiple categories ka side-by-side comparison.
|
|
51
|
+
5. ๐งฑ **Stacked Bar Plot (`stacked_bar`)** โ Proportions aur percentage composition across groups.
|
|
52
|
+
6. ๐ฅง **Pie Chart (`pie_chart`)** โ Circular percentage distribution.
|
|
53
|
+
7. ๐ฉ **Donut Chart (`donut_chart`)** โ Modern center-hole donut chart.
|
|
54
|
+
8. ๐ **Histogram (`histogram`)** โ Distribution spread, frequency bins aur KDE / box marginals.
|
|
55
|
+
9. โจ **Scatter Plot (`scatter_plot`)** โ Correlation, relationships, regression trendline aur $R^2$.
|
|
56
|
+
10. ๐๏ธ **Area Plot (`area_plot`)** โ Cumulative filled volume under curve.
|
|
57
|
+
11. โฐ๏ธ **Stacked Area Plot (`stacked_area_plot`)** โ Multiple groups ka cumulative trend over sequence.
|
|
58
|
+
12. ๐ฅ **Heatmap (`heatmap`)** โ 2D cross-tabulation frequency matrix aur 2D density heatmap.
|
|
59
|
+
13. ๐ก๏ธ **Correlation Heatmap (`correlation_heatmap`)** โ Poore dataset ke numeric columns ka Pearson correlation matrix.
|
|
60
|
+
14. ๐ฆ **Box Plot (`box_plot`)** โ Quartiles (Q1, Median, Q3) aur IQR outlier markers.
|
|
61
|
+
15. ๐ป **Violin Plot (`violin_plot`)** โ Kernel density estimation + embedded box plot.
|
|
62
|
+
16. ๐ฒ **Pair Plot (`pair_plot`)** โ Multivariate pairwise scatter matrix across dataset features.
|
|
63
|
+
|
|
64
|
+
### ๐ค Category B: Machine Learning & Diagnostic Plots (7 Plots)
|
|
65
|
+
17. ๐ฏ **Residual Plot (`residual_plot`)** โ Fitted values vs residuals ($y - \hat{y}$), homoscedasticity check, RMSE, MAE, $R^2$.
|
|
66
|
+
18. ๐ฒ **Feature Importance Plot (`feature_importance`)** โ Random Forest model se top predictive features ki ranking.
|
|
67
|
+
19. ๐ฎ **SHAP Summary Plot (`shap_summary`)** โ Explainable AI (SHAP) se features ka positive/negative impact.
|
|
68
|
+
20. ๐งฎ **Confusion Matrix Heatmap (`confusion_matrix`)** โ Classification True vs Predicted labels, Accuracy, Precision, Recall, F1.
|
|
69
|
+
21. ๐ **ROC Curve (`roc_curve`)** โ Receiver Operating Characteristic curve, False Positive vs True Positive rate, ROC-AUC score.
|
|
70
|
+
22. ๐ฏ **Precision-Recall Curve (`precision_recall_curve`)** โ PR curve with Average Precision (AP) score, imbalanced classification ke liye best.
|
|
71
|
+
23. ๐ **Learning Curve (`learning_curve`)** โ Sample size ke against Train vs Validation scores, Overfitting / Underfitting diagnosis.
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## ๐ฆ Python Library Installation
|
|
76
|
+
|
|
77
|
+
Yeh agent ab ek standard Python library (`data-agent`) ban chuka hai.
|
|
78
|
+
Aap ise apne system environment mein install kar sakte hain taaki **kisi bhi folder ya notebook se seedha import ho sake**:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
# Workspace folder mein jaakar install karein (editable mode):
|
|
82
|
+
pip install -e .
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Ek baar install hone ke baad, aap **apne computer par kahin se bhi** bina kisi path setting ke seedha likh sakte hain:
|
|
86
|
+
```python
|
|
87
|
+
from data_agent import AutoDataAgent
|
|
88
|
+
|
|
89
|
+
agent = AutoDataAgent()
|
|
90
|
+
agent.analyze("path/to/any_data.csv")
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
```python
|
|
95
|
+
from data_agent import AutoDataAgent
|
|
96
|
+
|
|
97
|
+
# Agent initialize karein
|
|
98
|
+
agent = AutoDataAgent()
|
|
99
|
+
|
|
100
|
+
# CSV file provide karein
|
|
101
|
+
agent.analyze("sample_sales_data.csv")
|
|
102
|
+
```
|
|
103
|
+
- **Step 1**: 1-click se pehla column (X-axis / Target) select karein.
|
|
104
|
+
- **Step 2**: 1-click se doosra column (Y-axis / Feature) chunein ya **Single Column / Dataset Mode** click karein.
|
|
105
|
+
- **Step 3**: 3 Tabs mein se koi bhi plot select karein.
|
|
106
|
+
- **Plot Output**:
|
|
107
|
+
- Upar **Download PNG** ya **Download HTML** par click karke save karein.
|
|
108
|
+
- Niche **โ Create Another Plot** dabakar naya plot add karein!
|
|
109
|
+
|
|
110
|
+
### 2. Programmatic Export (Direct Code):
|
|
111
|
+
```python
|
|
112
|
+
fig, code, insights = agent.quick_plot("Sales", "Profit", plot_id="scatter_plot")
|
|
113
|
+
|
|
114
|
+
# Save directly as PNG & HTML
|
|
115
|
+
png_path, _ = agent.export_plot(fig, filename="sales_vs_profit", format="png")
|
|
116
|
+
html_path, _ = agent.export_plot(fig, filename="sales_vs_profit", format="html")
|
|
117
|
+
|
|
118
|
+
print("Saved PNG:", png_path)
|
|
119
|
+
print("Saved HTML:", html_path)
|
|
120
|
+
fig.show()
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## ๐งช Testing
|
|
126
|
+
|
|
127
|
+
Test suite ko run karein:
|
|
128
|
+
```bash
|
|
129
|
+
python3 test_agent.py
|
|
130
|
+
```
|
|
131
|
+
Sabhi 25 tests pass hote hain:
|
|
132
|
+
```text
|
|
133
|
+
.........................
|
|
134
|
+
Ran 25 tests in 15.967s (OK)
|
|
135
|
+
```
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# ๐ค Automated Data Analysis & ML Diagnostics Agent for Jupyter Notebook
|
|
2
|
+
|
|
3
|
+
Jupyter Notebook ke andar **Exploratory Data Analysis (EDA)** aur **Machine Learning (ML) Model Diagnostics** ke liye ek all-in-one AI assistant.
|
|
4
|
+
|
|
5
|
+
Aapko bas CSV file provide karni hai โ agent aapse **Step 1: First Column** select karwayega, fir **Step 2: Second Column**, fir **Step 3 mein 3 organized tabs** ke andar **23 different plot types** offer karega, aur ek click mein **Interactive Visualizations (Plotly)**, **Statistical & ML Insights**, aur **Python Code** generate karke dega!
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## ๐ Naye Features (Multi-Plot & Direct Download)
|
|
10
|
+
|
|
11
|
+
### 1. โ Ek Se Zyada Plots Banayein (Active Plots Gallery)
|
|
12
|
+
- Pehla plot banne ke baad purana plot delete ya overwrite nahi hoga.
|
|
13
|
+
- Plot ke theek niche **"โ Create Another Plot (Naya Plot Banayein)"** button milta hai.
|
|
14
|
+
- Click karte hi aap naye columns aur naya plot choose kar sakte hain โ aur naya plot neeche append ho jayega!
|
|
15
|
+
- Is tarah aap ek hi notebook session mein kitne bhi plots (Plot #1, Plot #2, Plot #3...) stack karke compare kar sakte hain.
|
|
16
|
+
|
|
17
|
+
### 2. ๐ฅ 1-Click Direct Download (PNG & HTML)
|
|
18
|
+
- Har generated plot ke theek upar dedicated download buttons milte hain:
|
|
19
|
+
- ๐ฅ **Download PNG (High-Res Image)** โ Publication-ready high resolution 2x scale image directly download hoti hai.
|
|
20
|
+
- ๐ **Download Interactive HTML** โ Standalone browser file jisme zoom, pan, hover tooltips sab preserved rehte hain.
|
|
21
|
+
- Files aapke local `exports/` folder mein bhi automatically save hoti hain.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## ๐ Master Catalog of 23 Supported Plot Types
|
|
26
|
+
|
|
27
|
+
### ๐ Category A: Exploratory Data Analysis & Statistical Plots (16 Plots)
|
|
28
|
+
1. ๐ **Line Plot (`line_plot`)** โ Trends, sequential progression, aur time-series.
|
|
29
|
+
2. ๐ **Bar Plot (`bar_plot`)** โ Categories ka comparison (Mean / Sum aggregation ya counts).
|
|
30
|
+
3. ๐ **Horizontal Bar Plot (`horizontal_bar`)** โ Categories ki clean horizontal ranking.
|
|
31
|
+
4. ๐ถ **Grouped Bar Plot (`grouped_bar`)** โ Multiple categories ka side-by-side comparison.
|
|
32
|
+
5. ๐งฑ **Stacked Bar Plot (`stacked_bar`)** โ Proportions aur percentage composition across groups.
|
|
33
|
+
6. ๐ฅง **Pie Chart (`pie_chart`)** โ Circular percentage distribution.
|
|
34
|
+
7. ๐ฉ **Donut Chart (`donut_chart`)** โ Modern center-hole donut chart.
|
|
35
|
+
8. ๐ **Histogram (`histogram`)** โ Distribution spread, frequency bins aur KDE / box marginals.
|
|
36
|
+
9. โจ **Scatter Plot (`scatter_plot`)** โ Correlation, relationships, regression trendline aur $R^2$.
|
|
37
|
+
10. ๐๏ธ **Area Plot (`area_plot`)** โ Cumulative filled volume under curve.
|
|
38
|
+
11. โฐ๏ธ **Stacked Area Plot (`stacked_area_plot`)** โ Multiple groups ka cumulative trend over sequence.
|
|
39
|
+
12. ๐ฅ **Heatmap (`heatmap`)** โ 2D cross-tabulation frequency matrix aur 2D density heatmap.
|
|
40
|
+
13. ๐ก๏ธ **Correlation Heatmap (`correlation_heatmap`)** โ Poore dataset ke numeric columns ka Pearson correlation matrix.
|
|
41
|
+
14. ๐ฆ **Box Plot (`box_plot`)** โ Quartiles (Q1, Median, Q3) aur IQR outlier markers.
|
|
42
|
+
15. ๐ป **Violin Plot (`violin_plot`)** โ Kernel density estimation + embedded box plot.
|
|
43
|
+
16. ๐ฒ **Pair Plot (`pair_plot`)** โ Multivariate pairwise scatter matrix across dataset features.
|
|
44
|
+
|
|
45
|
+
### ๐ค Category B: Machine Learning & Diagnostic Plots (7 Plots)
|
|
46
|
+
17. ๐ฏ **Residual Plot (`residual_plot`)** โ Fitted values vs residuals ($y - \hat{y}$), homoscedasticity check, RMSE, MAE, $R^2$.
|
|
47
|
+
18. ๐ฒ **Feature Importance Plot (`feature_importance`)** โ Random Forest model se top predictive features ki ranking.
|
|
48
|
+
19. ๐ฎ **SHAP Summary Plot (`shap_summary`)** โ Explainable AI (SHAP) se features ka positive/negative impact.
|
|
49
|
+
20. ๐งฎ **Confusion Matrix Heatmap (`confusion_matrix`)** โ Classification True vs Predicted labels, Accuracy, Precision, Recall, F1.
|
|
50
|
+
21. ๐ **ROC Curve (`roc_curve`)** โ Receiver Operating Characteristic curve, False Positive vs True Positive rate, ROC-AUC score.
|
|
51
|
+
22. ๐ฏ **Precision-Recall Curve (`precision_recall_curve`)** โ PR curve with Average Precision (AP) score, imbalanced classification ke liye best.
|
|
52
|
+
23. ๐ **Learning Curve (`learning_curve`)** โ Sample size ke against Train vs Validation scores, Overfitting / Underfitting diagnosis.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## ๐ฆ Python Library Installation
|
|
57
|
+
|
|
58
|
+
Yeh agent ab ek standard Python library (`data-agent`) ban chuka hai.
|
|
59
|
+
Aap ise apne system environment mein install kar sakte hain taaki **kisi bhi folder ya notebook se seedha import ho sake**:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# Workspace folder mein jaakar install karein (editable mode):
|
|
63
|
+
pip install -e .
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Ek baar install hone ke baad, aap **apne computer par kahin se bhi** bina kisi path setting ke seedha likh sakte hain:
|
|
67
|
+
```python
|
|
68
|
+
from data_agent import AutoDataAgent
|
|
69
|
+
|
|
70
|
+
agent = AutoDataAgent()
|
|
71
|
+
agent.analyze("path/to/any_data.csv")
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
```python
|
|
76
|
+
from data_agent import AutoDataAgent
|
|
77
|
+
|
|
78
|
+
# Agent initialize karein
|
|
79
|
+
agent = AutoDataAgent()
|
|
80
|
+
|
|
81
|
+
# CSV file provide karein
|
|
82
|
+
agent.analyze("sample_sales_data.csv")
|
|
83
|
+
```
|
|
84
|
+
- **Step 1**: 1-click se pehla column (X-axis / Target) select karein.
|
|
85
|
+
- **Step 2**: 1-click se doosra column (Y-axis / Feature) chunein ya **Single Column / Dataset Mode** click karein.
|
|
86
|
+
- **Step 3**: 3 Tabs mein se koi bhi plot select karein.
|
|
87
|
+
- **Plot Output**:
|
|
88
|
+
- Upar **Download PNG** ya **Download HTML** par click karke save karein.
|
|
89
|
+
- Niche **โ Create Another Plot** dabakar naya plot add karein!
|
|
90
|
+
|
|
91
|
+
### 2. Programmatic Export (Direct Code):
|
|
92
|
+
```python
|
|
93
|
+
fig, code, insights = agent.quick_plot("Sales", "Profit", plot_id="scatter_plot")
|
|
94
|
+
|
|
95
|
+
# Save directly as PNG & HTML
|
|
96
|
+
png_path, _ = agent.export_plot(fig, filename="sales_vs_profit", format="png")
|
|
97
|
+
html_path, _ = agent.export_plot(fig, filename="sales_vs_profit", format="html")
|
|
98
|
+
|
|
99
|
+
print("Saved PNG:", png_path)
|
|
100
|
+
print("Saved HTML:", html_path)
|
|
101
|
+
fig.show()
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## ๐งช Testing
|
|
107
|
+
|
|
108
|
+
Test suite ko run karein:
|
|
109
|
+
```bash
|
|
110
|
+
python3 test_agent.py
|
|
111
|
+
```
|
|
112
|
+
Sabhi 25 tests pass hote hain:
|
|
113
|
+
```text
|
|
114
|
+
.........................
|
|
115
|
+
Ran 25 tests in 15.967s (OK)
|
|
116
|
+
```
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: autodataagent
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Automated CSV Data Analysis & ML Diagnostics Agent for Jupyter Notebooks
|
|
5
|
+
Author: AutoDataAgent Team
|
|
6
|
+
Keywords: data-analysis,jupyter,visualization,machine-learning,eda,plotly,shap
|
|
7
|
+
Requires-Python: >=3.8
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
Requires-Dist: pandas>=1.5.0
|
|
10
|
+
Requires-Dist: numpy>=1.20.0
|
|
11
|
+
Requires-Dist: plotly>=5.0.0
|
|
12
|
+
Requires-Dist: matplotlib>=3.5.0
|
|
13
|
+
Requires-Dist: seaborn>=0.12.0
|
|
14
|
+
Requires-Dist: scikit-learn>=1.0.0
|
|
15
|
+
Requires-Dist: shap>=0.40.0
|
|
16
|
+
Requires-Dist: ipywidgets>=8.0.0
|
|
17
|
+
Requires-Dist: kaleido>=0.2.0
|
|
18
|
+
Dynamic: requires-python
|
|
19
|
+
|
|
20
|
+
# ๐ค Automated Data Analysis & ML Diagnostics Agent for Jupyter Notebook
|
|
21
|
+
|
|
22
|
+
Jupyter Notebook ke andar **Exploratory Data Analysis (EDA)** aur **Machine Learning (ML) Model Diagnostics** ke liye ek all-in-one AI assistant.
|
|
23
|
+
|
|
24
|
+
Aapko bas CSV file provide karni hai โ agent aapse **Step 1: First Column** select karwayega, fir **Step 2: Second Column**, fir **Step 3 mein 3 organized tabs** ke andar **23 different plot types** offer karega, aur ek click mein **Interactive Visualizations (Plotly)**, **Statistical & ML Insights**, aur **Python Code** generate karke dega!
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## ๐ Naye Features (Multi-Plot & Direct Download)
|
|
29
|
+
|
|
30
|
+
### 1. โ Ek Se Zyada Plots Banayein (Active Plots Gallery)
|
|
31
|
+
- Pehla plot banne ke baad purana plot delete ya overwrite nahi hoga.
|
|
32
|
+
- Plot ke theek niche **"โ Create Another Plot (Naya Plot Banayein)"** button milta hai.
|
|
33
|
+
- Click karte hi aap naye columns aur naya plot choose kar sakte hain โ aur naya plot neeche append ho jayega!
|
|
34
|
+
- Is tarah aap ek hi notebook session mein kitne bhi plots (Plot #1, Plot #2, Plot #3...) stack karke compare kar sakte hain.
|
|
35
|
+
|
|
36
|
+
### 2. ๐ฅ 1-Click Direct Download (PNG & HTML)
|
|
37
|
+
- Har generated plot ke theek upar dedicated download buttons milte hain:
|
|
38
|
+
- ๐ฅ **Download PNG (High-Res Image)** โ Publication-ready high resolution 2x scale image directly download hoti hai.
|
|
39
|
+
- ๐ **Download Interactive HTML** โ Standalone browser file jisme zoom, pan, hover tooltips sab preserved rehte hain.
|
|
40
|
+
- Files aapke local `exports/` folder mein bhi automatically save hoti hain.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## ๐ Master Catalog of 23 Supported Plot Types
|
|
45
|
+
|
|
46
|
+
### ๐ Category A: Exploratory Data Analysis & Statistical Plots (16 Plots)
|
|
47
|
+
1. ๐ **Line Plot (`line_plot`)** โ Trends, sequential progression, aur time-series.
|
|
48
|
+
2. ๐ **Bar Plot (`bar_plot`)** โ Categories ka comparison (Mean / Sum aggregation ya counts).
|
|
49
|
+
3. ๐ **Horizontal Bar Plot (`horizontal_bar`)** โ Categories ki clean horizontal ranking.
|
|
50
|
+
4. ๐ถ **Grouped Bar Plot (`grouped_bar`)** โ Multiple categories ka side-by-side comparison.
|
|
51
|
+
5. ๐งฑ **Stacked Bar Plot (`stacked_bar`)** โ Proportions aur percentage composition across groups.
|
|
52
|
+
6. ๐ฅง **Pie Chart (`pie_chart`)** โ Circular percentage distribution.
|
|
53
|
+
7. ๐ฉ **Donut Chart (`donut_chart`)** โ Modern center-hole donut chart.
|
|
54
|
+
8. ๐ **Histogram (`histogram`)** โ Distribution spread, frequency bins aur KDE / box marginals.
|
|
55
|
+
9. โจ **Scatter Plot (`scatter_plot`)** โ Correlation, relationships, regression trendline aur $R^2$.
|
|
56
|
+
10. ๐๏ธ **Area Plot (`area_plot`)** โ Cumulative filled volume under curve.
|
|
57
|
+
11. โฐ๏ธ **Stacked Area Plot (`stacked_area_plot`)** โ Multiple groups ka cumulative trend over sequence.
|
|
58
|
+
12. ๐ฅ **Heatmap (`heatmap`)** โ 2D cross-tabulation frequency matrix aur 2D density heatmap.
|
|
59
|
+
13. ๐ก๏ธ **Correlation Heatmap (`correlation_heatmap`)** โ Poore dataset ke numeric columns ka Pearson correlation matrix.
|
|
60
|
+
14. ๐ฆ **Box Plot (`box_plot`)** โ Quartiles (Q1, Median, Q3) aur IQR outlier markers.
|
|
61
|
+
15. ๐ป **Violin Plot (`violin_plot`)** โ Kernel density estimation + embedded box plot.
|
|
62
|
+
16. ๐ฒ **Pair Plot (`pair_plot`)** โ Multivariate pairwise scatter matrix across dataset features.
|
|
63
|
+
|
|
64
|
+
### ๐ค Category B: Machine Learning & Diagnostic Plots (7 Plots)
|
|
65
|
+
17. ๐ฏ **Residual Plot (`residual_plot`)** โ Fitted values vs residuals ($y - \hat{y}$), homoscedasticity check, RMSE, MAE, $R^2$.
|
|
66
|
+
18. ๐ฒ **Feature Importance Plot (`feature_importance`)** โ Random Forest model se top predictive features ki ranking.
|
|
67
|
+
19. ๐ฎ **SHAP Summary Plot (`shap_summary`)** โ Explainable AI (SHAP) se features ka positive/negative impact.
|
|
68
|
+
20. ๐งฎ **Confusion Matrix Heatmap (`confusion_matrix`)** โ Classification True vs Predicted labels, Accuracy, Precision, Recall, F1.
|
|
69
|
+
21. ๐ **ROC Curve (`roc_curve`)** โ Receiver Operating Characteristic curve, False Positive vs True Positive rate, ROC-AUC score.
|
|
70
|
+
22. ๐ฏ **Precision-Recall Curve (`precision_recall_curve`)** โ PR curve with Average Precision (AP) score, imbalanced classification ke liye best.
|
|
71
|
+
23. ๐ **Learning Curve (`learning_curve`)** โ Sample size ke against Train vs Validation scores, Overfitting / Underfitting diagnosis.
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## ๐ฆ Python Library Installation
|
|
76
|
+
|
|
77
|
+
Yeh agent ab ek standard Python library (`data-agent`) ban chuka hai.
|
|
78
|
+
Aap ise apne system environment mein install kar sakte hain taaki **kisi bhi folder ya notebook se seedha import ho sake**:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
# Workspace folder mein jaakar install karein (editable mode):
|
|
82
|
+
pip install -e .
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Ek baar install hone ke baad, aap **apne computer par kahin se bhi** bina kisi path setting ke seedha likh sakte hain:
|
|
86
|
+
```python
|
|
87
|
+
from data_agent import AutoDataAgent
|
|
88
|
+
|
|
89
|
+
agent = AutoDataAgent()
|
|
90
|
+
agent.analyze("path/to/any_data.csv")
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
```python
|
|
95
|
+
from data_agent import AutoDataAgent
|
|
96
|
+
|
|
97
|
+
# Agent initialize karein
|
|
98
|
+
agent = AutoDataAgent()
|
|
99
|
+
|
|
100
|
+
# CSV file provide karein
|
|
101
|
+
agent.analyze("sample_sales_data.csv")
|
|
102
|
+
```
|
|
103
|
+
- **Step 1**: 1-click se pehla column (X-axis / Target) select karein.
|
|
104
|
+
- **Step 2**: 1-click se doosra column (Y-axis / Feature) chunein ya **Single Column / Dataset Mode** click karein.
|
|
105
|
+
- **Step 3**: 3 Tabs mein se koi bhi plot select karein.
|
|
106
|
+
- **Plot Output**:
|
|
107
|
+
- Upar **Download PNG** ya **Download HTML** par click karke save karein.
|
|
108
|
+
- Niche **โ Create Another Plot** dabakar naya plot add karein!
|
|
109
|
+
|
|
110
|
+
### 2. Programmatic Export (Direct Code):
|
|
111
|
+
```python
|
|
112
|
+
fig, code, insights = agent.quick_plot("Sales", "Profit", plot_id="scatter_plot")
|
|
113
|
+
|
|
114
|
+
# Save directly as PNG & HTML
|
|
115
|
+
png_path, _ = agent.export_plot(fig, filename="sales_vs_profit", format="png")
|
|
116
|
+
html_path, _ = agent.export_plot(fig, filename="sales_vs_profit", format="html")
|
|
117
|
+
|
|
118
|
+
print("Saved PNG:", png_path)
|
|
119
|
+
print("Saved HTML:", html_path)
|
|
120
|
+
fig.show()
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## ๐งช Testing
|
|
126
|
+
|
|
127
|
+
Test suite ko run karein:
|
|
128
|
+
```bash
|
|
129
|
+
python3 test_agent.py
|
|
130
|
+
```
|
|
131
|
+
Sabhi 25 tests pass hote hain:
|
|
132
|
+
```text
|
|
133
|
+
.........................
|
|
134
|
+
Ran 25 tests in 15.967s (OK)
|
|
135
|
+
```
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
autodataagent.py
|
|
3
|
+
data_agent.py
|
|
4
|
+
pyproject.toml
|
|
5
|
+
setup.py
|
|
6
|
+
autodataagent.egg-info/PKG-INFO
|
|
7
|
+
autodataagent.egg-info/SOURCES.txt
|
|
8
|
+
autodataagent.egg-info/dependency_links.txt
|
|
9
|
+
autodataagent.egg-info/requires.txt
|
|
10
|
+
autodataagent.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|