Let's import the Numpy package and use the where() method to label our data: import numpy as np df['Churn'] = np.where(df['Churn'] == 'Yes', ...
確定! 回上一頁