Skip to content

pandas replace

Substitute specific values throughout a DataFrame or Series.

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

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