Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def convert_to_rating(x):
- return (str(x) + ' out of 10')
- df['rating'] = df['rating'].apply(convert_to_rating) # 4.0 rating out of 10
- df.head()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement