How you can create a dataFrame column based on the above condition using DataFrame.loc[] . df.loc[df['Marks'] <= 39, 'Result'] = 'Failed' df.loc[(df[' ...
確定! 回上一頁