df ['y'] will set a column. since you want to set a row, use .loc. Note that .ix is equivalent here, yours failed because you tried to assign a dictionary to ...
確定! 回上一頁