datagrok-ai/public/datagrok-calc-column
Claude Code and agent skill by datagrok-ai/public
- community
Checking that the SKILL.md file is still in the repository.
Add a calculated, formula-based column to a dataframe via the datagrok_exec tool. Use whenever the user asks to compute, derive, add, or create a new column from existing columns — LipE, ratios, log/round, heavy atom count, any expression in the Datagrok formula DSL. Replaces hand-written addNewFloat/addNewInt + for-loop with a single formula-attached column that recomputes when source columns change.
Install
npx vskill@latest install datagrok-ai/public/datagrok-calc-columnSKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry/datagrok-calc-column.
datagrok-calc-column
Use t.columns.addNewCalculated(name, formula, type?) in datagrok_exec code to add a formula-driven column. The formula stays attached to the column, so edits to source columns trigger automatic recompute.
Do not use t.columns.addNewFloat('LipE') plus a manual for loop — that produces a static column with no formula and no recompute.
Signature
t is the current DG.DataFrame (injected by datagrok_exec). If you have a DataFrame from elsewhere, replace t with that variable.
Formula DSL — quick reference
| Form | Meaning | |
|---|---|---|
${ColumnName} | per-row scalar reference, exact case | |
$[ColumnName] | whole-column reference (use inside aggregates) | |
row | current row index | |
+ - * / ^ | operators | |
Round, RoundFloat, Log, Log10, Sqrt, Abs | math functions | |
Avg($[col]), Sum($[col]), Min($[col]), Max($[col]), StDev($[col]) | aggregates over a whole column | |
Max([${A}, ${B}]), Min([${A}, ${B}]) | per-row max / min across columns — the argument is an array | |
Chem:getInchis(${molecule}) | only functions tagged vectorFunc: 'true' work here — see Which functions work in a formula | |
"text" | string literal (double quotes) |
Both operator and function forms parse: ${pIC50} - ${cLogP} ≡ Sub(${pIC50}, ${cLogP}).
Full function catalog: help/transform/add-new-column.md.
Examples
Which functions work in a formula
A package function (Chem:foo, Admetica:bar, ...) can be used inside an addNewCalculated formula only if it is tagged vectorFunc: 'true' in its metadata. Everything else must be called imperatively via grok.functions.call(...) in a separate datagrok_exec call.
Chem properties → use the chem catalog, not a formula
For molecular properties (MW, LogP, LogS, HBA, HBD, PSA, rotatable bonds, stereo centers, molecule charge): use Chem:addChemPropertiesColumns (boolean flags) or Chem:getProperties(molecules, selected?) (string list) — see datagrok-chem-toolkit. Example:
What this skill does NOT do
- It does not filter, sort, or select rows — those are separate skills.
- It does not add viewers — use
grok.shell.addViewer(...)or a future viewer skill. - It does not run server-side scripts — use
grok.functions.call(...)or the script's registered name.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/Grokky/dockerfiles/claude-runtime/plugin/skills/datagrok-calc-column/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/datagrok-ai/public/datagrok-calc-column)