将一列中的数据相乘并使用答案创建一个新列?
我只想要所需的功能。我尝试过 Select col1 From table where col1*.1 As new col.
对于 ind,行在 amount.interrows() 中: amount.loc[ind, "discountPrice"] = row['amount']*.1
最佳答案
这是您要找的吗?
select col1, col1 * 0.1 new_col1 from mytable
关于mysql - 在Python中乘法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58592321/