Data Science Pro
AI-agentic, LLM-augmented data science pipeline for CSV datasets. It performs EDA, preprocessing, modeling, evaluation, and reporting with minimal user code.
Install
pip install -e .
# or when released
# pip install data-science-pro
Verify:
import data_science_pro
from data_science_pro import DataSciencePro
Quickstart (Python API)
Minimal end-to-end run that generates a markdown report:
from data_science_pro import DataSciencePro
dsp = DataSciencePro(api_key="YOUR_OPENAI_KEY") # or "" to run without LLM/RAG embeddings
# Optional guidance to the agent
dsp.controller.goal = "Predict churn with strong accuracy"
dsp.controller.user_target = "churn" # optional; if omitted the agent will infer
final = dsp.run("/path/to/data.csv")
print(final.get("report", "No report produced"))
What happens:
- Loads your CSV, performs EDA and indexes summaries (RAG) for retrieval
- Plans and suggests next steps
- Selects/validates the target
- Iterates: preprocess → train → evaluate → critique → improve
- Stops on target metric or max iterations and produces a professional report
Notes:
- When
api_keyis empty or a test value, RAG uses a local mode and still runs. - Set
dsp.controller.goal(string) to guide the agent. Setdsp.controller.user_target(string) to force the target column.
Beginner-Friendly Example
from data_science_pro import DataSciencePro
dsp = DataSciencePro(api_key="") # run without external LLM (RAG in local mode)
final = dsp.run("titanic.csv")
print(final["report"]) # Executive summary, EDA, preprocessing, modeling, metrics, recommendations
Advanced Usage (Experienced DS)
Control the agent through state:
from data_science_pro import DataSciencePro
dsp = DataSciencePro(api_key="YOUR_OPENAI_KEY")
# Configure agent objectives
dsp.controller.goal = "Reach accuracy >= 0.90 with interpretable model"
dsp.controller.user_target = None # let the agent choose from candidates
# (Optional) adjust loop parameters directly by editing controller.run() defaults if needed
state = dsp.run("/data/training.csv")
# Inspect artifacts
print(state.get("analysis")) # EDA summary
print(state.get("retrieved_context")) # RAG snippets
print(state.get("evaluation")) # metrics dict
print(state.get("history")) # actions taken across iterations
Key Concepts
-
Agentic LangGraph
- Orchestrator decides next step (analyze, preprocess, train, evaluate, report)
- Planner proposes a concise plan; Critic flags quality issues
- TargetSelector chooses target via user hint > LLM > heuristic
-
RAG over EDA
- Indexes column and dataset summaries (missingness, cardinality, basic stats)
- Retrieves relevant context to ground suggestions and reports
- Uses OpenAI embeddings when
api_keyis valid; falls back to local mode otherwise
-
Reporting
- Structured markdown report with executive summary, EDA highlights, preprocessing, modeling, metrics, and recommendations
Troubleshooting
- No OpenAI key: set
api_key=""to run without external calls; RAG runs in local mode. - Target not detected: set
dsp.controller.user_target = "your_target". - Healthcheck: run a local end-to-end check without network calls:
python corrected_imports.py
FAQ
- Does it handle large CSVs? Yes, but consider sampling for initial iterations.
- Can I change the model? The agent selects sensible defaults; you can modify
Trainerto register alternatives. - Where is the final report? Returned in
final_state["report"].
License
MIT
Metadata
Release files for data-science-pro 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| data_science_pro-0.2.0.tar.gz | 15.5 kB | Without provenance | Details for data_science_pro-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| data_science_pro-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for data_science_pro-0.2.0-py3-none-any.whl |
Total release size: 36.7 kB
Release files / data_science_pro-0.2.0.tar.gz
| Download URL | data_science_pro-0.2.0.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc72e68449de4ac3056d277e5584dadfc6018c32b0ab19d5fd34c42ef3a2499f
|
|
BLAKE2b-256 checksum How to use checksums |
7ee9184ea5ca041b33ae9c359d2c134ad4f03b38244f69a8d045c68ee8987e61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.13
|
Release files / data_science_pro-0.2.0-py3-none-any.whl
| Download URL | data_science_pro-0.2.0-py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d608602a13d2cb03ded823bb3519fbbcce9dc2b653ddcc0538c80490d8872104
|
|
BLAKE2b-256 checksum How to use checksums |
20a730b5bdfa318d122e6ff6508e7abf754677ee9f124d8eceef31cfc7c67e2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.13
|
Security for data-science-pro 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.