Category Resources

Weather API Python: Analyze Historical Trends

Weather API Python: Analyze Historical Trends

Historical weather records can help answer how conditions varied during a chosen period. A weather API returns data for a requested location and time span, which Python can use to calculate summaries. This article shows how to send a historical…

Building Bingo with Python

Want to build your own bingo game? Python is a good way to get started. You can put together a basic version without getting bogged down in complicated code, then add features once the thing actually works. There’s a bit…

Python Standard Library Modules for Common Tasks

Python Standard Library Modules for Common Tasks

Before installing a package for a small job, it helps to know what Python already includes. The standard library is a collection of modules that Python distributes for common programming tasks. I’ll explain how standard-library modules differ from separately installed…

EM Algorithm: Run It and Know When to Trust It

EM Algorithm: Run It and Know When to Trust It

The EM algorithm raises the log-likelihood on every iteration, which every explanation repeats, and the guarantee is only local. Writing the two steps in numpy and fitting three components to iris petal length shows the algorithm converging. Breaking the run…