在这个函数中使用“*”的目的是什么?

pyspark中用于用均值填充nan值的以下函数,这里使用*是什么意思?

def fill_with_mean(df,include=set()):
    stats = df.agg(*(avg(c).alias(c) for c in df.columns if c in include))
    return df.na.fill(stats.first().asDict())

谢谢。

junbo_wake 回答:在这个函数中使用“*”的目的是什么?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2209.html

大家都在问