Project rules
Python Data Science Rules
Project rules for Python data science repos: notebooks kept thin, logic in modules, fixed seeds, tidy pandas code and versioned data.
CLAUDE.md
1Layout
2- Put reusable code in a package under `src/` with tests in `tests/`. Notebooks go in `notebooks/`, numbered, and only import from the package. Strip outputs before commit with `nbstripout`.
3- Never copy functions between notebooks. Move them into a module the moment a second notebook needs them.
4Reproducibility
5- Pin the environment with `pyproject.toml` and a lock file (uv or pip-tools). Record the Python version.
pythonpandas
#
Python Data Science Rules
Project rulespython
Free