we can change the word to another value by using dict in map
dataframe.map( {'female': 0, 'male': 1} )
reference:https://www.kaggle.com/arthurtok/introduction-to-ensembling-stacking-in-python
More than 3 years have passed since last update.
we can change the word to another value by using dict in map
dataframe.map( {'female': 0, 'male': 1} )
reference:https://www.kaggle.com/arthurtok/introduction-to-ensembling-stacking-in-python
Register as a new user and use Qiita more conveniently