I am using the dataset from Kaggle: https://www.kaggle.com/rajeevw/ufcdata with the data.csv file, and I tried to replace the values from Weight column using this code to later transform it to integer column, but I am already stuck at getting rid of the strings as follows:
fighter_data['Weight'] = fighter_data['Weight'].replace(" lbs.",'')
fighter_data
So an example will be: a value of 145 lbs. and I use the code above to get rid of lbs so that it can be integer 145. Apparently the code above doesn't work and nothing changes. What did I do wrong? Thanks!