Kotlin / Kotlin/dataframe

New API function to convert `ValueColumn<DataFrame<*>?>` -> `FrameColumn`

Open
#1,855 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

API
Dominant language
Kotlin
Stars
1.1k
Forks
83
Avg merge
4d 12h
Merged PRs (30d)
30

Description

Idea from: https://github.com/Kotlin/dataframe/pull/1847#issuecomment-4406279928

As some functions only work with FrameColumn and ValueColumn<DataFrame<*>> should probably not be allowed (https://github.com/Kotlin/dataframe/issues/1852, https://github.com/Kotlin/dataframe/issues/1854#issuecomment-4420250555),
we might need some easy-to-discover functions to convert between them besides fillNulls {}.

  • Convert<T, AnyFrame?>.toFrameColumn(fillNullsWith: DataRow<T>.() -> AnyFrame = DataFrame.empty())
  • convertToFrameColumn(fillNullsWith: DataRow<T>.() -> AnyFrame = DataFrame.empty())
    or maybe even more direct:
  • toFrameColumn(fillNullsWith: DataRow<T>.() -> AnyFrame = DataFrame.empty())

something like that

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked pull request comment and issues #1852 and #1854, then compare the existing fillNulls {} conversion path. Done means selecting one discoverable API shape and verifying its fillNullsWith behavior for converting ValueColumn<DataFrame<*>> to FrameColumn.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
api, data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.