Concept Flow - replace() for value substitution
Start with DataFrame
Call replace() with old and new values
Check each cell for old value
Yes No
Replace
Return new DataFrame with substitutions
End
The replace() method scans the data, substitutes matching old values with new ones, and returns the updated data.