Skip to content

Glossary: pandas Beyond the Basics

assert

Also written: AssertionError, assert statement

A Python statement that checks a condition and stops the program with an `AssertionError` and your message if the condition is false. It makes your assumptions about the data explicit.

Where the book teaches it

Related terms

Reconcile totalsKey