I'm looking at a table of mock Yelp reviews (data_clean is my pandas.dataframe). My column 'stars' is mixed text and integers. I want to convert the text values to integers. I'm trying the below. It doesn't error but also doesn't work!
data_clean.stars.replace([type(data_clean.stars)=='string'],[data_clean['stars'].astype(int)])
Help appreciated!