I have problem to clear the string "km/kg", "kmpl", "CC", and "bhp" from these column in dataset
Here is the example dataset
Year | Fuel_Type | Mileage | Engine | Power |
2010 | LPG | 26.6 km/kg | 998 CC | 58.16 bhp |
2011 | Diesel | 19.67 kmpl | 1582 CC | 126.2 bhp |
In this particular case, remove all characters from Engine, Mileage and Power columns of the dataset so that only the number remains.