计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
apply-groupby-window【效率与协作】Apply, transform, groupby aggregation, and rolling or expanding window workflows for Koalas.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a Koalas task needs custom higher-order computation, pandas UDF-style batch functions, grouped aggregation, or rolling/expanding windows.
DataFrame.apply, DataFrame.transform, DataFrame.koalas.apply_batch, DataFrame.koalas.transform_batch, and the deprecated DataFrame.map_in_pandas alias.Series.apply, Series.map, Series.transform, and Series.koalas.transform_batch.GroupBy.apply, GroupBy.transform, DataFrameGroupBy.agg/aggregate, ks.NamedAgg, grouped reductions, cumulative operations, filtering, ranking, get_group, and SeriesGroupBy-only helpers.DataFrame.rolling, Series.rolling, DataFrame.expanding, Series.expanding, plus groupby(...).rolling(...) and groupby(...).expanding(...).to_spark, Spark DataFrame.to_koalas, and Spark-column-only transforms: spark-io-sql.compute.ops_on_diff_frames, compute.shortcut_limit, default index type, plotting, and extension accessors: configuration-extensions. This sub-skill explains where those options affect apply/groupby/window choices.transform/transform_batch only when every partition or group returns the same number of rows as it received.apply/apply_batch when the result can be shorter, longer, scalar per group, or a new frame shape.agg over GroupBy.apply whenever the computation is expressible as named aggregations.