答案 0 :(得分:1)
您可以这样做:
File "py1", line 8
numcopy = int(input("Number of result messages:\n"))
^
SyntaxError: invalid syntax
我们也可以使用NoScript
函数执行此操作:
get_val <- function(acc_type,check_type,val){
return(ifelse(acc_type == check_type,val,NA))
}
df$Account_Draft_Current_Bal <- get_val(df$Account,'Draft',df$Current_Bal)
df$Account_Savings_Current_Bal <- get_val(df$Account,'Savings',df$Current_Bal)