functional_intro_to_python

[tutorial]A functional, Data Science focused introduction to Python

View the Project on GitHub noahgift/functional_intro_to_python

Functional Intro to Python (& Rust)

Modernized teaching repo: uv + ruff + ty only ยท 100% branch coverage ยท icontract + hypothesis provable contracts ยท every example transpilable to Rust via depyler and held to clippy -D warnings + proptest parity. See docs/specifications/upgrade-spec.md.


๐ŸŽ“ Pragmatic AI Labs | Join 2M+ ML Engineers


Pragmatic AI Labs Specializations

๐Ÿ“š Rust Data Engineering Specialization โ€” ๐Ÿ“ฆ GitHub: paiml/rust-de-specialization

๐Ÿ“š Next-Gen AI Development with Hugging Face Specialization โ€” ๐Ÿ“ฆ GitHub: paiml/applied-ai-engineering

๐Ÿ“š Enterprise AI and Data Engineering with Databricks Specialization

๐Ÿ“š AI Tooling Specialization โ€” ๐Ÿ“ฆ GitHub: paiml/ai-tooling

๐Ÿ“š Mastering GitHub Specialization โ€” ๐Ÿ“ฆ GitHub: paiml/mastering-github


Duke University Specializations

๐Ÿ“š Building Cloud Computing Solutions at Scale Specialization

๐Ÿ“š **[MLOps Machine Learning Operations Specialization](https://www.coursera.org/specializations/mlops-machine-learning-duke)**

๐Ÿ“š Rust Programming Specialization

๐Ÿ“š Large Language Model Operations (LLMOps) Specialization

๐Ÿ“š Applied Python Data Engineering Specialization

๐Ÿ“š Python, Bash and SQL Essentials for Data Engineering Specialization


๐Ÿ“ Guided Projects


๐ŸŽฏ Standalone Courses

More from Pragmatic AI Labs

Learn real-world ML engineering from industry experts. Used by Fortune 500 companies.


Functional, Data Science Intro To Python

The first section is an intentionally brief, functional, data-science-centric introduction to Python. The assumption is that someone with zero programming experience can follow this tutorial and learn Python with the smallest amount of information possible.

The sections after that vary in difficulty and cover Machine Learning, Linear Optimization, build systems, commandline tools, recommendation engines, Sentiment Analysis, and Cloud Computing.

Lessons

The notebook files live under notebooks/. Run them with uv run jupyter lab after make install.

Quality Gates

Single source of truth for the toolchain. No pip, no pylint, no black, no mypy, no poetry โ€” enforced by CI grep.

Concern Tool Make target
Env + deps uv make install
Lint + format ruff make lint, make fmt-check
Type check ty make type
Tests + cov pytest + coverage make cover (100% required)
Contracts icontract + hypothesis runs via make cover
Compliance pmat comply make comply
Py โ†’ Rust depyler make depyler
Rust gate cargo fmt + clippy -D warnings + proptest make rust

Run everything: make all.

License

The text content of these notebooks is released under the CC-BY-NC-ND license (see license.md).