I have to change the name of the columns: city, batting_team, bowling_team, batsman, non_striker, bowler. These column have string value and I have to change it to int/float to put it through the regressor. I know we can use one hot encoder but I don't know how to code it.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.