技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
core-dataframes【数据与研究】Create and manipulate Koalas DataFrame, Series, and Index objects with pandas-like APIs and conversion guidance.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about creating, converting, indexing, reshaping, cleaning, typing, or summarizing Koalas DataFrame, Series, and Index objects with pandas-like APIs.
databricks.koalas as ks, ks.DataFrame, ks.Series, ks.Index, ks.from_pandas, ks.range, to_pandas, and to_spark(index_col=...) when the focus is preserving or avoiding a default index.ks.concat, ks.merge, ks.melt, ks.get_dummies, ks.to_datetime, ks.date_range, ks.isna / isnull / notna / notnull, and ks.to_numeric.df[...], attribute column access when safe, loc, iloc, at, iat, head, tail, where, mask, query, set_index, and reset_index.astype, missing-data operations, string accessor Series.str, datetime accessor Series.dt, categorical accessor Series.cat, index and MultiIndex basics, and descriptive statistics.to_pandas() is acceptable only for bounded data..spark accessor depth, JDBC, and production Spark IO: spark-io-sql.apply, transform, map_in_pandas, groupby, rolling, expanding, window, and return type-hint depth: apply-groupby-window.__column__-style names, pandas collection risks, non-iterability, default-index cost, and dtype gotchas.--check import, --check dataframe, or --check all.to_pandas() only after a bounded head, sample, filter, or other proof that the result fits driver memory.ks.from_pandas(pdf) for migration tests and tiny fixtures. For Spark interop, preserve an index with to_spark(index_col="...") and sdf.to_koalas(index_col="...") when an existing column can serve as the index.a/A, and names wrapped in double underscores before relying on selection or Spark conversion.Series or expects local arrays, rewrite to Koalas vectorized APIs or explicitly collect with to_numpy() / to_pandas() after bounding data size.