dataframe / samples
AGENTS.md1.1k starsChanged 26 days agoApache-2.0View on GitHub
Guidance for this module. See the root AGENTS.md for repo-wide build/style/KoDEx rules; only module-specific details are here. Writing or updating documentation? The rules live in DOCUMENTATION_GUIDELINES.md (website topics + samples) and KDOC_GUIDELINES.md (KDocs) — read the relevant one first. For an operation page (topic + samples in this module), use the operation-website-documentation skill, which walks through that workflow step by step. If anything here disagrees with the guidelines, the guidelines win. :samples holds the code samples (plus DataFrame iframes and…
- Deletes or force-pushes
Trending
Less talk lately.about the whole repository
Who's talking about Kotlin/dataframe
- Kotlin/kandy“Support compose multiplatform”GitHub · Dec 14, 2023 · 45 reactions
- Kotlin/kotlin-agent-skills“Add a Skill for working with Kotlin DataFrame”GitHub · May 19, 2026 · 6 reactions
- deephaven/deephaven-csv“Read files with different encodings”GitHub · Nov 11, 2025 · 2 reactions
- Velkonost/sssss“deps(gradle): bump org.jetbrains.kotlinx:dataframe from 0.13.1 to 0.15.0”GitHub · Oct 15, 2025 · 2 reactions
- jeremymailen/kotlinter-gradle“Wired issues when Upgrading to Kotlin 1.8.20 ”GitHub · Apr 12, 2023 · 2 reactions
The biggest 5 of 51 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 51
Talked about on GitHub and Bluesky (51 times).
On GitHub · 50
- Dec 14, 2023Support compose multiplatform — Kotlin/kandy45 reactions · 7 comments
- May 19, 2026Add a Skill for working with Kotlin DataFrame — Kotlin/kotlin-agent-skills6 reactions
- Nov 11, 2025Read files with different encodings — deephaven/deephaven-csv2 reactions · 2 comments
- Oct 15, 2025deps(gradle): bump org.jetbrains.kotlinx:dataframe from 0.13.1 to 0.15.0 — Velkonost/sssss2 reactions · 1 comment
- Apr 12, 2023Wired issues when Upgrading to Kotlin 1.8.20 — jeremymailen/kotlinter-gradle2 reactions · 9 comments
45 more on GitHub
- Sep 25, 2026fix(deps): update all dependencies — salesforce-misc/ReVoman1 reaction · 1 comment
- Dec 9, 2024chore(deps): update dependency org.jetbrains.kotlinx:dataframe to v0.15.0 — Kotlin/kotlin-jupyter-libraries1 reaction
- May 27, 2024Remove `concatFixed()` — Kotlin/kandy1 reaction
- Nov 1, 2026build(deps): bump kotlinx-dataframe from 1.0.0-rc02 to 1.0.0-rc02n — sureshg/native-image-playground0 reactions · 2 comments
- Oct 30, 2026[KDF] Support columnOf(vararg DataFrame) FrameColumn creation — JetBrains/kotlin0 reactions · 18 comments
- Oct 29, 2026Move `@sample` after the removal of escape characters — Jolanrensen/KoDEx0 reactions · 2 comments
- Oct 26, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-rc02 to 1.0.0-rc02n — sureshg/build-commons0 reactions
- Oct 19, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-rc01 to 1.0.0-rc02n — sureshg/kotlin-mpp-playground0 reactions · 2 comments
- Oct 19, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-rc02 to 1.0.0-rc02n — sureshg/build-commons0 reactions
- Oct 16, 2026Fix generated jars and support publishing KoDEx-processed artifacts — Jolanrensen/KoDEx0 reactions
- Oct 15, 2026chore(deps): update dependency org.jetbrains.kotlinx:dataframe-geo to v1.0.0-rc02n - autoclosed — Kotlin/kotlin-jupyter-libraries0 reactions
- Oct 12, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-rc01 to 1.0.0-rc01n — sureshg/build-commons0 reactions
- Oct 7, 2026[KDF] (Attempt 2) Fixed return type mismatch report, like when using `add {}` — JetBrains/kotlin0 reactions · 12 comments
- Oct 5, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-rc01 to 1.0.0-rc01n — sureshg/build-commons0 reactions
- Oct 2, 2026[KDF] Fixed return type mismatch report, like when using `add {}` — JetBrains/kotlin0 reactions · 8 comments
- Oct 1, 2026build(deps): bump kotlinx-dataframe from 1.0.0-rc01 to 1.0.0-rc01n — sureshg/native-image-playground0 reactions · 2 comments
- Sep 28, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-rc01 to 1.0.0-rc01n — sureshg/build-commons0 reactions
- Sep 21, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-rc01 to 1.0.0-rc01n — sureshg/build-commons0 reactions
- Sep 14, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-rc01 to 1.0.0-rc01n — sureshg/build-commons0 reactions
- Sep 11, 2026Bump org.jetbrains.kotlinx:dataframe from 1.0.0-rc01 to 1.0.0-rc01n — linde9821/epa-visualizer0 reactions
- Sep 7, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-rc01 to 1.0.0-rc01n — sureshg/build-commons0 reactions
- Aug 31, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-rc01 to 1.0.0-rc01n — sureshg/build-commons0 reactions
- Aug 24, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-rc01 to 1.0.0-rc01n — sureshg/build-commons0 reactions
- Aug 21, 2026[Feature] Create a preprocessor that adds/creates reference aliases with codespans — Jolanrensen/KoDEx0 reactions
- Aug 10, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-rc01 to 1.0.0-rc01n — sureshg/build-commons0 reactions
- Aug 3, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-rc01 to 1.0.0-rc01n — sureshg/build-commons0 reactions
- Aug 1, 2026build(deps): bump kotlinx-dataframe from 1.0.0-rc01 to 1.0.0-rc01n — sureshg/native-image-playground0 reactions · 2 comments
- Jul 27, 2026Bumped built-in dataframe version to 1.0.0-rc01 — JetBrains/kotlin-toolchain0 reactions · 3 comments
- Jul 27, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-rc01 to 1.0.0-rc01n — sureshg/build-commons0 reactions
- Jul 20, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-Beta5 to 1.0.0-rc01n — sureshg/kotlin-mpp-playground0 reactions · 2 comments
- Jul 20, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-Beta5 to 1.0.0-Beta5n — sureshg/build-commons0 reactions
- Jul 13, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-Beta5 to 1.0.0-Beta5n — sureshg/build-commons0 reactions
- Jul 6, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-Beta5 to 1.0.0-Beta5n — sureshg/build-commons0 reactions
- Jul 1, 2026build(deps): bump kotlinx-dataframe from 1.0.0-Beta5 to 1.0.0-Beta5n — sureshg/native-image-playground0 reactions · 2 comments
- Jun 25, 2026Kotlin SWE benchmark contribution — multi-swe-bench/multi-swe-benchsays it tested it0 reactions
- Jun 22, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-Beta5 to 1.0.0-Beta5n — sureshg/build-commons0 reactions
- Jun 15, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-Beta5 to 1.0.0-Beta5n — sureshg/kotlin-mpp-playground0 reactions · 2 comments
- Jun 15, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-Beta5 to 1.0.0-Beta5n — sureshg/build-commons0 reactions
- Jun 8, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-Beta5 to 1.0.0-dev-10584 — sureshg/kotlin-mpp-playground0 reactions · 2 comments
- Jun 8, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-Beta5 to 1.0.0-dev-10535 — sureshg/build-commons0 reactions
- Jun 2, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-Beta5 to 1.0.0-dev-10508 — sureshg/build-commons0 reactions
- Jun 1, 2026build(deps): bump kotlinx-dataframe from 1.0.0-Beta5 to 1.0.0-dev-10508 — sureshg/native-image-playground0 reactions · 2 comments
- May 25, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-Beta5 to 1.0.0-dev-10485 — sureshg/build-commons0 reactions
- May 18, 2026chore(deps): bump kotlinx-dataframe from 1.0.0-Beta5 to 1.0.0-dev-10438 — sureshg/build-commons0 reactions
- Oct 29, 2025[K2] TranslatorError: from STATUS to IMPLICIT_TYPES_BODY_RESOLVE — Kotlin/dokka0 reactions · 3 comments
On Bluesky · 1
- May 19, 2025Kotlin DataFrame aims to reconcile Kotlin's static typing with the dynamic nature of data by utilizing both the full power of the Kotlin… — @ytroncal.bsky.social1 likes and repost
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,542 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- core/AGENTS.mdAGENTS.md
- dataframe-arrow/AGENTS.mdAGENTS.md
- dataframe-compiler-plugin-core/AGENTS.mdAGENTS.md
- dataframe-csv/AGENTS.mdAGENTS.md
- dataframe-excel/AGENTS.mdAGENTS.md
- dataframe-geo/AGENTS.mdAGENTS.md
- dataframe-jdbc/AGENTS.mdAGENTS.md
- dataframe-json/AGENTS.mdAGENTS.md
- examples/AGENTS.mdAGENTS.md
- plugins/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- core/CLAUDE.mdCLAUDE.md
- dataframe-arrow/CLAUDE.mdCLAUDE.md
- dataframe-compiler-plugin-core/CLAUDE.mdCLAUDE.md
- dataframe-csv/CLAUDE.mdCLAUDE.md
- dataframe-excel/CLAUDE.mdCLAUDE.md
- dataframe-geo/CLAUDE.mdCLAUDE.md
- dataframe-jdbc/CLAUDE.mdCLAUDE.md
- dataframe-json/CLAUDE.mdCLAUDE.md
- examples/CLAUDE.mdCLAUDE.md
- plugins/CLAUDE.mdCLAUDE.md
- samples/CLAUDE.mdCLAUDE.md
- operation-website-documentationSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Never use the legacy "dataframe explainer" / @TransformDataFrameExpressions mechanism.
- Very specific: line 85
Never skip
clean: before build/test/korro: otherwise stale korro output lines in build/ (incl. - Very specific: line 91
After editing a sample file, run ./gradlew :samples:ktlintFormat :samples:ktlintCheck.
- Very specific: line 100
If the operation selects columns or uses row values, the basic example is a x_properties / x_strings pair (Extension Properties API / …
- Very specific: line 109
Use small, illustrative data (e.g.
- Very specific: line 113
Write each sample as a runnable test with optional assertions.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md — samples
Guidance for this module. See the root AGENTS.md for repo-wide build/style/KoDEx rules; only module-specific
details are here.
Writing or updating documentation? The rules live in DOCUMENTATION_GUIDELINES.md
(website topics + samples) and KDOC_GUIDELINES.md (KDocs) — read the relevant one first.
For an operation page (topic + samples in this module), use the
operation-website-documentation skill,
which walks through that workflow step by step. If anything here disagrees with the guidelines, the guidelines win.
What this module is
:samples holds the code samples (plus DataFrame iframes and Kandy plot images) for the documentation website.
Documentation snippets here are runnable tests: running them produces output that Korro injects into the WriterSide
docs under docs/StardustDocs/topics/.
It also holds the KDoc examples: public KDocs include them with the KoDEx @sample notation (KoDEx adds
samples/src/test/kotlin as a contextual source), so the code a KDoc shows is a passing test here. Rename or
delete a sample, and the @sample references to it break — search src/main/kotlin for the function name first.
See the "Examples section" in KDOC_GUIDELINES.md.
New documentation samples belong here, not in :core. (Sample migration into this module is in progress —
issue #898; :core still has a legacy samples source set + samplesTest/korro tasks that will be removed.)
Never use the legacy "dataframe explainer" / @TransformDataFrameExpressions mechanism; when migrating a page,
rewrite its :core samples here with Sample Helper outputs.
Moving a page's samples here means deleting the :core originals in the same PR (usually from
core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/Access.kt). Nothing reports a :core sample
that no page imports any more, so the orphan stays, and the next person who edits it sees no change on the
page. Before the PR, check that every function the page imported from :core is either deleted or still used by
another page.
A test that asserts what a page prints belongs here too, not in :core: the dependency runs
:samples → :core (build.gradle.kts takes :core through its jars; core/build.gradle.kts has no
dependency on :samples), so a :core test cannot reach TestBase.peopleDf and has to copy the fixture
— and a copy stops tracking the original the day someone adds a row to it.
How it works
- Sample sources live under
src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/**(subpackagesapi/,io/,guides/,concepts/,schemas/, …). Test resources (CSV/JSON/XLSX/Parquet/Feather) are insrc/test/resources/. - The module applies the DataFrame compiler plugin (
libs.plugins.dataframe.compiler.plugin), so samples get compile-time type-safe accessors. It depends on the built jars of the I/O modules (runtimeOnly(projects.dataframe)) — "must depend on jars for the compiler plugin to work". - Running the tests emits korro output lines (into
build/korroOutputLines/). Then thekorrotask injects the sample code + output between the<!---FUN x-->/<!---END-->marks of the topic markdown. Korro'sdocs/samplesincludes inbuild.gradle.ktsdefine exactly whichdocs/StardustDocs/topics/**files and sample packages this module owns. Never hand-write or hand-patch the inserted snippets. - A text
Output:block is either generated or stale.String.saveSample()writes one (with theOutput:header),CodeString.saveSample()wraps the value in a```kotlinfence andString.saveTextSample()in a```textone; korro then injects the block inside the<!---FUN-->…<!---END-->region. A block typed by hand sits outside<!---END-->, and nothing checks it ever again. At the time of writing the topics carry 8 generated blocks against 10 hand-written ones, so the hand-written shape is common but is the one that rots — prefersaveSample. groupSamplestab convention: function-name suffixes map to doc tabs —_properties→ "Properties",_strings→ "Strings",_kotlin→ "Kotlin",_java→ "Java". Korro wraps the variants into<tabs>/<tab>itself: in the topic write a single<!---FUN x-->with the base name (no suffix) and no tab markup.SampleHelpercuts the_properties/_stringssuffix off output file names too (namePartsToRemove), so both variants write./resources/x.html— save the output in one of them only (usually_properties).- Iframes / plots:
DataFrameSampleHelper(SampleHelper) saves DataFrames as HTML iframes intodocs/StardustDocs/resources/<subFolder>/<pageName>/and Kandy plots as SVGs intodocs/StardustDocs/images/, named after the test function without the suffix. It also writes a korro output line for them (itsonDfHtmlSampleSaved/onPlotSampleSavedhooks), so korro injects the<inline-frame>/<img>inside the<!---FUN-->…<!---END-->block, together with any text output of the same test, in the order they were saved. Don't add one by hand after<!---END-->— it duplicates the generated one. The only hand-written iframe is for an output shown without code: a test with no// SampleStartand noFUNmark in the topic. TheupdateShadowResourcestask regeneratesdocs/StardustDocs/topics/_shadow_resources.md(a<resource>tag per generated file, keyed by file name only). So an<inline-frame>srcis always flat —./resources/<testName>.html, never the on-disk path; a nestedsrcbuilds fine but renders an empty frame. These are all generated — don't edit them by hand. If a sample output changes, confirm the change is intentional.
Build / run
First delete the page's HTML output folder (rm -rf docs/StardustDocs/resources/<subFolder>/<pageName>; the tests
recreate it), then run in this order (korro must run after test):
./gradlew :samples:clean :samples:build :samples:test
./gradlew :samples:korro
./gradlew :samples:updateShadowResources- Never skip
cleanbeforebuild/test/korro: otherwise stale korro output lines inbuild/(incl. those of renamed or deleted samples) survive and get injected into the docs. cleandoes not remove HTML outputs — they are written straight into the trackeddocs/StardustDocs/resources/. Without deleting the page folder first, HTML of renamed or deleted samples stays on disk andupdateShadowResourcesregisters it again.- The test task already sets
--add-opens java.base/java.nio=ALL-UNNAMED(for Arrow). - After editing a sample file, run
./gradlew :samples:ktlintFormat :samples:ktlintCheck.
Writing a sample
- One test file per documentation page, e.g.
api/<Operation>Samples.ktextendingDataFrameSampleHelper("<pageName>", "api"); keep the test order aligned with the topic's sections. Put it in the subpackage matching its topic, and make sure both the test and the topic file are covered by thekorro.docs/korro.samplesincludes. - Mark snippets with
// SampleStart/// SampleEnd; show the input dataframe first, in its own sample. - If the operation selects columns or uses row values, the basic example is a
x_properties/x_stringspair (Extension Properties API / String API). If the operation can't take plainStringnames, write_stringswithStringcolumn accessors (col<Int>("age"),getValue<Int>("age"), …) — never the outdated "Invoked String API" ("age"<Int>()). Use the Extension Properties API in the remaining examples. - After
// SampleEnd: save outputs (.saveDfHtmlSample()forDataFrame/DataColumn/GroupBy, using.toDataFrame()/.values()/.frames()if needed;.savePlotSVGSample()for plots;.saveSample()/.saveTextSample()forString/CodeString— see above) and add highlighting (.format/.formatHeader/.defaultHeaderFormatting { }— rows for row-oriented operations, headers for column-oriented ones). Korro puts every saved output into the topic itself, inside the sample'sFUN/ENDblock. - Use small, illustrative data (e.g. a frame with
nulls fornull-related operations).TestBase'speopleDfetc. is the default; otherwise declare a local@DataSchema+dataFrameOf(...)(seeConcatSamples.kt). - No deprecated API — no deprecated operations, overloads or parameters; samples must compile without deprecation warnings.
- Write each sample as a runnable test with optional assertions; it must pass and must not be
@Ignored (except complex integration tests, e.g. reading from DBs).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

