noweda 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.
- {noweda-0.2.0/noweda.egg-info → noweda-0.2.2}/PKG-INFO +70 -24
- {noweda-0.2.0 → noweda-0.2.2}/README.md +67 -19
- {noweda-0.2.0 → noweda-0.2.2}/noweda/__init__.py +2 -1
- noweda-0.2.2/noweda/_version.py +1 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/accessor.py +183 -478
- {noweda-0.2.0 → noweda-0.2.2}/noweda/cli.py +2 -2
- {noweda-0.2.0 → noweda-0.2.2}/noweda/io.py +27 -11
- noweda-0.2.2/noweda/large.py +221 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/ml_tasks.py +14 -5
- {noweda-0.2.0 → noweda-0.2.2}/noweda/ml_utils.py +10 -8
- noweda-0.2.2/noweda/visualization.py +714 -0
- {noweda-0.2.0 → noweda-0.2.2/noweda.egg-info}/PKG-INFO +70 -24
- {noweda-0.2.0 → noweda-0.2.2}/noweda.egg-info/SOURCES.txt +5 -1
- {noweda-0.2.0 → noweda-0.2.2}/noweda.egg-info/requires.txt +2 -5
- {noweda-0.2.0 → noweda-0.2.2}/pyproject.toml +3 -3
- noweda-0.2.2/tests/test_large_mode.py +83 -0
- {noweda-0.2.0 → noweda-0.2.2}/tests/test_ml_tasks.py +20 -1
- {noweda-0.2.0 → noweda-0.2.2}/tests/test_regressions.py +64 -1
- noweda-0.2.2/tests/test_vizall_ml.py +160 -0
- noweda-0.2.0/noweda/_version.py +0 -1
- {noweda-0.2.0 → noweda-0.2.2}/LICENSE +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/MANIFEST.in +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/examples/sample.csv +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/core/__init__.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/core/engine.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/dtypes.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/insights/__init__.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/insights/generator.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/ml_recommendations.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/plugins/__init__.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/plugins/base.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/plugins/correlation.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/plugins/duplicates.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/plugins/encoding.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/plugins/missing.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/plugins/outliers.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/plugins/pii.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/plugins/schema.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/plugins/stats.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/report/__init__.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/report/html.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/report/json.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/scoring/__init__.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/scoring/scorer.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/temporal_utils.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda/ui.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda.egg-info/dependency_links.txt +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda.egg-info/entry_points.txt +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/noweda.egg-info/top_level.txt +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/setup.cfg +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/setup.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/tests/test_basic.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/tests/test_formats.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/tests/test_progress.py +0 -0
- {noweda-0.2.0 → noweda-0.2.2}/tests/test_release_014.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: noweda
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Automated EDA with insights, scoring, and security-aware detection — built as a native pandas extension.
|
|
5
5
|
Author-email: Daniel Peng <danielpeng95@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -27,6 +27,8 @@ License-File: LICENSE
|
|
|
27
27
|
Requires-Dist: pandas>=1.3
|
|
28
28
|
Requires-Dist: numpy>=1.21
|
|
29
29
|
Requires-Dist: pyspark>=3.4
|
|
30
|
+
Requires-Dist: duckdb>=1.1
|
|
31
|
+
Requires-Dist: pyarrow>=14
|
|
30
32
|
Requires-Dist: openpyxl>=3.1
|
|
31
33
|
Requires-Dist: lxml>=4.6
|
|
32
34
|
Provides-Extra: excel
|
|
@@ -41,12 +43,9 @@ Requires-Dist: statsmodels>=0.13; extra == "ml"
|
|
|
41
43
|
Requires-Dist: scikit-learn>=1.0; extra == "ml"
|
|
42
44
|
Provides-Extra: test
|
|
43
45
|
Requires-Dist: pytest>=7; extra == "test"
|
|
44
|
-
Requires-Dist: pyarrow>=8.0; extra == "test"
|
|
45
46
|
Requires-Dist: odfpy>=1.4.1; extra == "test"
|
|
46
47
|
Requires-Dist: matplotlib>=3.5; extra == "test"
|
|
47
48
|
Requires-Dist: scipy>=1.7; extra == "test"
|
|
48
|
-
Provides-Extra: parquet
|
|
49
|
-
Requires-Dist: pyarrow>=8.0; extra == "parquet"
|
|
50
49
|
Provides-Extra: hdf
|
|
51
50
|
Requires-Dist: tables>=3.7; extra == "hdf"
|
|
52
51
|
Provides-Extra: spss
|
|
@@ -59,7 +58,6 @@ Requires-Dist: matplotlib>=3.5; extra == "full"
|
|
|
59
58
|
Requires-Dist: scipy>=1.7; extra == "full"
|
|
60
59
|
Requires-Dist: statsmodels>=0.13; extra == "full"
|
|
61
60
|
Requires-Dist: scikit-learn>=1.0; extra == "full"
|
|
62
|
-
Requires-Dist: pyarrow>=8.0; extra == "full"
|
|
63
61
|
Requires-Dist: tables>=3.7; extra == "full"
|
|
64
62
|
Requires-Dist: pyreadstat>=1.1; extra == "full"
|
|
65
63
|
Dynamic: license-file
|
|
@@ -106,11 +104,39 @@ df = pd.DataFrame({
|
|
|
106
104
|
"segment": ["A", "B", "A", "B"],
|
|
107
105
|
})
|
|
108
106
|
|
|
109
|
-
|
|
110
|
-
print(df.eda.missing_df())
|
|
107
|
+
# Start with one complete assessment.
|
|
111
108
|
df.eda.statsall()
|
|
109
|
+
|
|
110
|
+
# With noweda[viz], rank general charts within a panel budget.
|
|
111
|
+
# df.eda.vizall(max_plots=10)
|
|
112
|
+
|
|
113
|
+
# Add target-aware diagnostics for model-family decisions.
|
|
114
|
+
# df.eda.vizall(target="segment", max_plots=15)
|
|
115
|
+
|
|
116
|
+
# Name an outcome before asking for supervised ML guidance.
|
|
117
|
+
# df.eda.mlall(target="segment")
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Large files
|
|
121
|
+
|
|
122
|
+
Use explicit large mode when a CSV, TSV, TXT, or Parquet file should stay on
|
|
123
|
+
disk. The same core `.eda` workflow supports `statsall()`, `report()`,
|
|
124
|
+
`vizall()`, `mlall()`, `profile_column()`, and `compare()`.
|
|
125
|
+
|
|
126
|
+
```python
|
|
127
|
+
data = eda.read("data.csv", mode="large", chunksize=100_000)
|
|
128
|
+
data.head() # Reads only the requested leading rows from disk.
|
|
129
|
+
data.eda.statsall()
|
|
130
|
+
data.eda.mlall(target="fraud_flag")
|
|
112
131
|
```
|
|
113
132
|
|
|
133
|
+
Large mode calculates the dataset dimensions exactly. Exploratory findings,
|
|
134
|
+
charts, profiles, comparisons, and ML guidance use a bounded sample and print
|
|
135
|
+
its size before running, so estimates are never presented as full-data results.
|
|
136
|
+
`statsall()`, `vizall()`, and `mlall()` use `sample=10_000` by default in large
|
|
137
|
+
mode; pass another positive integer to adjust that scope. In small mode those
|
|
138
|
+
methods use every loaded row by default, and accept the same `sample=` override.
|
|
139
|
+
|
|
114
140
|
## Analysis methods
|
|
115
141
|
|
|
116
142
|
### 1. `df.eda.statsall()` — Statistical profile
|
|
@@ -170,20 +196,32 @@ metrics, and cautions. Stars and `/5` values are estimated dataset-fit ratings
|
|
|
170
196
|
within the selected task, not measured accuracy or expected performance. NowEDA
|
|
171
197
|
does not train models in this step. See the [ML guidance documentation](https://codewithdaniel1.github.io/NowEDA/ml-guidance/).
|
|
172
198
|
|
|
173
|
-
### 3. `df.eda.vizall()` —
|
|
199
|
+
### 3. `df.eda.vizall()` — Ranked visual diagnostics
|
|
174
200
|
|
|
175
|
-
Install `noweda[viz]` to draw distributions,
|
|
176
|
-
missingness, and applicable temporal plots.
|
|
177
|
-
|
|
201
|
+
Install `noweda[viz]` to draw a bounded set of distributions, relationships,
|
|
202
|
+
missingness, outliers, feature scales, and applicable temporal plots. Supply the
|
|
203
|
+
prediction target to add classification or regression diagnostics. NowEDA ranks
|
|
204
|
+
useful features, excludes likely identifiers and detected PII, and describes
|
|
205
|
+
model-family signals without claiming that a chart proves the best model.
|
|
178
206
|
|
|
179
207
|
```python
|
|
180
|
-
df.eda.vizall()
|
|
181
|
-
|
|
182
|
-
|
|
208
|
+
df.eda.vizall() # General and unsupervised structure
|
|
209
|
+
|
|
210
|
+
visuals = df.eda.vizall(
|
|
211
|
+
target="fraud_flag",
|
|
212
|
+
max_plots=15,
|
|
213
|
+
)
|
|
214
|
+
print(visuals["model_signals"])
|
|
215
|
+
|
|
216
|
+
df.eda.vizall(sample=5_000) # Optional bounded sample
|
|
183
217
|
```
|
|
184
218
|
|
|
185
|
-
|
|
186
|
-
|
|
219
|
+
`max_plots` counts individual chart panels, including subplots. The returned
|
|
220
|
+
result contains the figures, ranked associations, selected features, plot
|
|
221
|
+
titles, scope, and cautious model signals. In small mode, `sample=` bounds this
|
|
222
|
+
visual analysis without changing the loaded DataFrame.
|
|
223
|
+
See the [visual diagnostics guide](https://codewithdaniel1.github.io/NowEDA/visual-diagnostics/)
|
|
224
|
+
for classification, regression, sampling, and interpretation details.
|
|
187
225
|
|
|
188
226
|
### 4. `df.eda.profile_column("age")` — One-column profile
|
|
189
227
|
|
|
@@ -194,7 +232,10 @@ Inspect a column's distribution, missingness, outliers, and suggested transforms
|
|
|
194
232
|
Compare dimensions, inferred column roles, scores, and detected risks between
|
|
195
233
|
two DataFrames. This is not a formal statistical test for distribution drift.
|
|
196
234
|
|
|
197
|
-
##
|
|
235
|
+
## Advanced: tables and programmatic reports
|
|
236
|
+
|
|
237
|
+
Most notebook and pipeline code should start with `report()`. The individual
|
|
238
|
+
tables below are focused extracts for dashboards, tests, and custom workflows.
|
|
198
239
|
|
|
199
240
|
| Method | Output |
|
|
200
241
|
|---|---|
|
|
@@ -240,7 +281,7 @@ df = eda.read("data.csv", dtype={"customer_id": str})
|
|
|
240
281
|
|---|---|
|
|
241
282
|
| CSV, TSV, TXT, JSON/JSONL, XLSX/XLSM, XML, HTML, Stata, SAS, Pickle | `pip install noweda` |
|
|
242
283
|
| XLS, XLSB, ODS/ODF/ODT | `pip install "noweda[excel]"` |
|
|
243
|
-
| Parquet, Feather, ORC | `pip install
|
|
284
|
+
| Parquet, Feather, ORC | Included with `pip install noweda` |
|
|
244
285
|
| HDF5 | `pip install "noweda[hdf]"` |
|
|
245
286
|
| SPSS | `pip install "noweda[spss]"` |
|
|
246
287
|
| Charts and KDE overlays | `pip install "noweda[viz]"` |
|
|
@@ -251,12 +292,17 @@ Only read Pickle files from trusted sources, since loading them can execute code
|
|
|
251
292
|
|
|
252
293
|
## Large files
|
|
253
294
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
295
|
+
Use explicit large mode for CSV, TSV, TXT, and Parquet files that should stay
|
|
296
|
+
on disk:
|
|
297
|
+
|
|
298
|
+
```python
|
|
299
|
+
data = eda.read("large.csv", mode="large", chunksize=100_000)
|
|
300
|
+
data.eda.report()
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
Large mode reports exact dimensions. Its exploratory methods print a clear
|
|
304
|
+
sample-size notice before returning sample-based estimates. `read_chunked()`
|
|
305
|
+
remains available for manual streaming of CSV and line-delimited JSON.
|
|
260
306
|
|
|
261
307
|
For data that does not fit in memory, iterate over CSV or line-delimited JSON:
|
|
262
308
|
|
|
@@ -40,11 +40,39 @@ df = pd.DataFrame({
|
|
|
40
40
|
"segment": ["A", "B", "A", "B"],
|
|
41
41
|
})
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
print(df.eda.missing_df())
|
|
43
|
+
# Start with one complete assessment.
|
|
45
44
|
df.eda.statsall()
|
|
45
|
+
|
|
46
|
+
# With noweda[viz], rank general charts within a panel budget.
|
|
47
|
+
# df.eda.vizall(max_plots=10)
|
|
48
|
+
|
|
49
|
+
# Add target-aware diagnostics for model-family decisions.
|
|
50
|
+
# df.eda.vizall(target="segment", max_plots=15)
|
|
51
|
+
|
|
52
|
+
# Name an outcome before asking for supervised ML guidance.
|
|
53
|
+
# df.eda.mlall(target="segment")
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Large files
|
|
57
|
+
|
|
58
|
+
Use explicit large mode when a CSV, TSV, TXT, or Parquet file should stay on
|
|
59
|
+
disk. The same core `.eda` workflow supports `statsall()`, `report()`,
|
|
60
|
+
`vizall()`, `mlall()`, `profile_column()`, and `compare()`.
|
|
61
|
+
|
|
62
|
+
```python
|
|
63
|
+
data = eda.read("data.csv", mode="large", chunksize=100_000)
|
|
64
|
+
data.head() # Reads only the requested leading rows from disk.
|
|
65
|
+
data.eda.statsall()
|
|
66
|
+
data.eda.mlall(target="fraud_flag")
|
|
46
67
|
```
|
|
47
68
|
|
|
69
|
+
Large mode calculates the dataset dimensions exactly. Exploratory findings,
|
|
70
|
+
charts, profiles, comparisons, and ML guidance use a bounded sample and print
|
|
71
|
+
its size before running, so estimates are never presented as full-data results.
|
|
72
|
+
`statsall()`, `vizall()`, and `mlall()` use `sample=10_000` by default in large
|
|
73
|
+
mode; pass another positive integer to adjust that scope. In small mode those
|
|
74
|
+
methods use every loaded row by default, and accept the same `sample=` override.
|
|
75
|
+
|
|
48
76
|
## Analysis methods
|
|
49
77
|
|
|
50
78
|
### 1. `df.eda.statsall()` — Statistical profile
|
|
@@ -104,20 +132,32 @@ metrics, and cautions. Stars and `/5` values are estimated dataset-fit ratings
|
|
|
104
132
|
within the selected task, not measured accuracy or expected performance. NowEDA
|
|
105
133
|
does not train models in this step. See the [ML guidance documentation](https://codewithdaniel1.github.io/NowEDA/ml-guidance/).
|
|
106
134
|
|
|
107
|
-
### 3. `df.eda.vizall()` —
|
|
135
|
+
### 3. `df.eda.vizall()` — Ranked visual diagnostics
|
|
108
136
|
|
|
109
|
-
Install `noweda[viz]` to draw distributions,
|
|
110
|
-
missingness, and applicable temporal plots.
|
|
111
|
-
|
|
137
|
+
Install `noweda[viz]` to draw a bounded set of distributions, relationships,
|
|
138
|
+
missingness, outliers, feature scales, and applicable temporal plots. Supply the
|
|
139
|
+
prediction target to add classification or regression diagnostics. NowEDA ranks
|
|
140
|
+
useful features, excludes likely identifiers and detected PII, and describes
|
|
141
|
+
model-family signals without claiming that a chart proves the best model.
|
|
112
142
|
|
|
113
143
|
```python
|
|
114
|
-
df.eda.vizall()
|
|
115
|
-
|
|
116
|
-
|
|
144
|
+
df.eda.vizall() # General and unsupervised structure
|
|
145
|
+
|
|
146
|
+
visuals = df.eda.vizall(
|
|
147
|
+
target="fraud_flag",
|
|
148
|
+
max_plots=15,
|
|
149
|
+
)
|
|
150
|
+
print(visuals["model_signals"])
|
|
151
|
+
|
|
152
|
+
df.eda.vizall(sample=5_000) # Optional bounded sample
|
|
117
153
|
```
|
|
118
154
|
|
|
119
|
-
|
|
120
|
-
|
|
155
|
+
`max_plots` counts individual chart panels, including subplots. The returned
|
|
156
|
+
result contains the figures, ranked associations, selected features, plot
|
|
157
|
+
titles, scope, and cautious model signals. In small mode, `sample=` bounds this
|
|
158
|
+
visual analysis without changing the loaded DataFrame.
|
|
159
|
+
See the [visual diagnostics guide](https://codewithdaniel1.github.io/NowEDA/visual-diagnostics/)
|
|
160
|
+
for classification, regression, sampling, and interpretation details.
|
|
121
161
|
|
|
122
162
|
### 4. `df.eda.profile_column("age")` — One-column profile
|
|
123
163
|
|
|
@@ -128,7 +168,10 @@ Inspect a column's distribution, missingness, outliers, and suggested transforms
|
|
|
128
168
|
Compare dimensions, inferred column roles, scores, and detected risks between
|
|
129
169
|
two DataFrames. This is not a formal statistical test for distribution drift.
|
|
130
170
|
|
|
131
|
-
##
|
|
171
|
+
## Advanced: tables and programmatic reports
|
|
172
|
+
|
|
173
|
+
Most notebook and pipeline code should start with `report()`. The individual
|
|
174
|
+
tables below are focused extracts for dashboards, tests, and custom workflows.
|
|
132
175
|
|
|
133
176
|
| Method | Output |
|
|
134
177
|
|---|---|
|
|
@@ -174,7 +217,7 @@ df = eda.read("data.csv", dtype={"customer_id": str})
|
|
|
174
217
|
|---|---|
|
|
175
218
|
| CSV, TSV, TXT, JSON/JSONL, XLSX/XLSM, XML, HTML, Stata, SAS, Pickle | `pip install noweda` |
|
|
176
219
|
| XLS, XLSB, ODS/ODF/ODT | `pip install "noweda[excel]"` |
|
|
177
|
-
| Parquet, Feather, ORC | `pip install
|
|
220
|
+
| Parquet, Feather, ORC | Included with `pip install noweda` |
|
|
178
221
|
| HDF5 | `pip install "noweda[hdf]"` |
|
|
179
222
|
| SPSS | `pip install "noweda[spss]"` |
|
|
180
223
|
| Charts and KDE overlays | `pip install "noweda[viz]"` |
|
|
@@ -185,12 +228,17 @@ Only read Pickle files from trusted sources, since loading them can execute code
|
|
|
185
228
|
|
|
186
229
|
## Large files
|
|
187
230
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
231
|
+
Use explicit large mode for CSV, TSV, TXT, and Parquet files that should stay
|
|
232
|
+
on disk:
|
|
233
|
+
|
|
234
|
+
```python
|
|
235
|
+
data = eda.read("large.csv", mode="large", chunksize=100_000)
|
|
236
|
+
data.eda.report()
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
Large mode reports exact dimensions. Its exploratory methods print a clear
|
|
240
|
+
sample-size notice before returning sample-based estimates. `read_chunked()`
|
|
241
|
+
remains available for manual streaming of CSV and line-delimited JSON.
|
|
194
242
|
|
|
195
243
|
For data that does not fit in memory, iterate over CSV or line-delimited JSON:
|
|
196
244
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from .io import read, read_chunked
|
|
2
|
+
from .large import LargeDataset
|
|
2
3
|
from .accessor import NowEDAAccessor
|
|
3
4
|
|
|
4
5
|
from ._version import __version__
|
|
5
6
|
|
|
6
|
-
__all__ = ["read", "read_chunked", "__version__"]
|
|
7
|
+
__all__ = ["read", "read_chunked", "LargeDataset", "__version__"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.2"
|