python的round函数碰到这种问题
TypeError: Invalid argument, not a string or column: 1.992 of type <type 'float'>. For column literals, use 'lit', 'array', 'struct' or 'create_map' function.
很简单,加这个就可以了!
import builtins
round = getattr(builtins, "round")
python的round函数碰到这种问题
TypeError: Invalid argument, not a string or column: 1.992 of type <type 'float'>. For column literals, use 'lit', 'array', 'struct' or 'create_map' function.
很简单,加这个就可以了!
import builtins
round = getattr(builtins, "round")