...

/

Other Manipulation Methods

Other Manipulation Methods

Review other data manipulation techniques provided by pandas.

Clipping data

If we have outliers in our data, we might want to use the clip method. In the example below, we’ll see the original first 447 entries in the “city” range from 9 to 31:

Press + to interact
print(city_mpg.loc[:446])

We can ...