AI engineering glossary · NumPy pandas visualization

What is reduction?

Reduction (also called aggregation function): An operation that collapses many values along an axis into fewer values, such as sum, mean, min, max or standard deviation. Giving an axis controls which dimension is collapsed, and keepdims=True keeps the collapsed axis as length 1 so results still broadcast.

Level: intermediateTopic: NumPy pandas visualization

Reduction: an example

a.sum(axis=0) on a (100, 3) array returns 3 column totals; a.sum() returns one grand total.

Related terms

More NumPy pandas visualization terms

Where you learn it

Reduction is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.