Skip to content

pandas diff

Compute the difference between consecutive values.

Below are the 29 Bamboo Weekly exercises that use diff on real-world data — try each one, then study the worked solution.

Part of the Pandas Methods Index. See also practice by skill.