Skip to content

Add Python analysis API and visualization tooling - #7

Merged
tmgsr02 merged 2 commits into
masterfrom
codex/add-high-level-api-functions-and-visualization-helpers
Oct 24, 2025
Merged

tmgsr02 merged 2 commits into
masterfrom
codex/add-high-level-api-functions-and-visualization-helpers

Conversation

@tmgsr02

@tmgsr02 tmgsr02 commented Oct 24, 2025

Copy link
Copy Markdown
Owner

Summary

  • add a macrobase_py package with a high-level analysis API and result container classes
  • provide Matplotlib and Plotly visualization helpers for summary tables, bar charts, and pivot heatmaps
  • document the workflow with example notebooks and a Streamlit demo for interactive exploration

Testing

  • python - <<'PY'
    from macrobase_py.api import analyze

result = analyze('core/demo/sample.csv')
print(result.row_count, result.column_count)
print(len(result.column_profiles))
print(result.column_profiles[0].top_values[:2])
print(result.summary_statistics.head(2))
PY

  • python - <<'PY'
    from macrobase_py.api import analyze

cfg = {
'target_column': 'usage',
'pivot': [
{'index': 'location', 'columns': 'version', 'values': ['latency'], 'aggfunc': 'mean'}
]
}
res = analyze('core/demo/sample.csv', cfg)
print(len(res.pivot_views))
print(res.pivot_views[0].metrics['latency'].head())
PY


https://chatgpt.com/codex/tasks/task_e_68fade19bb348320aee0ab9263847ff9

@tmgsr02
tmgsr02 merged commit 3f74381 into master Oct 24, 2025
0 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant