Replace and Rename
In this lesson, functions to replace values and renaming indexes are discussed.
We'll cover the following...
We'll cover the following...
Replace values
The pandas package provides built-in functions to replace values in a Series and a DataFrame. The replace() function is called by both Series and DataFrame objects to execute this task.
Replace in Series #
The following example shows how to replace single and multiple values in a Series object.
On line 10, a single value A is replaced with ...