Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含 4 个数值列的数据框,我必须计算这些列的平均值并将平均值存储在 pyspark 的另一列中。
df["mean"] = df.loc[:,d_cols].apply(np.mean, axis=1) (python pandas)
我必须做与上面相同的事情,但在 pyspark 中。