Concept Flow - replace() for value substitution
Start with DataFrame
Call replace() with mapping
Check each cell value
If value matches key in mapping?
No→Keep original value
Yes
Replace with mapped value
Return new DataFrame with substitutions
The replace() method scans the DataFrame values and substitutes matching values with new ones based on a given mapping.