... df4['val'] 是按照index赋值的,所以,结果就出乎我们的意料。 使用result = result.reset_index(drop=True)来改变index就可以了,.
確定! 回上一頁