Waxmark
BrowsePacksRulesSkillsPromptsGuideAbout

Data science pack

Starter pack

Analysis-ready rules for the scientific Python stack: pandas, NumPy, scikit-learn, and Matplotlib.

5 items · curated by waxmark

Rule✓ sealedCC0-1.0

Pandas

This guide outlines definitive best practices for writing high-performance, maintainable, and robust pandas code, focusing on modern patterns and avoiding common pitfalls.

Rule✓ sealedCC0-1.0

NumPy

NumPy 2.x rules: vectorize and broadcast instead of looping, set dtype explicitly, know views from copies, pre-allocate, type signatures with np.ndarray, pin numpy>=2.0, and compare arrays with numpy.testing.assert_allclose.

Rule✓ sealedCC0-1.0

scikit-learn

scikit-learn rules: pipelines for every preprocessing step, API-compliant custom estimators with validate_data and check_is_fitted, split-before-fit to stop leakage, random_state everywhere, GridSearchCV on the pipeline, check_estimator tests.

Rule✓ sealedCC0-1.0

Matplotlib

This guide outlines definitive best practices for writing clean, performant, and maintainable matplotlib code, emphasizing the object-oriented API and modern data science workflows.

Rule✓ sealedCC0-1.0

Python

Python 3.10+ rules: PEP 8 layout and naming, grouped imports, one docstring style, builtin generic type hints, uv or Poetry environments, src layout with editable installs, pytest with parametrize, and idioms like context managers and enums.

Waxmark — every file sealed before it reaches your agent.

BrowsePacksGuideAboutSecurityTermsPrivacyTakedown