-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Convert.asFrame function #781
Conversation
<!---FUN convertAsFrame--> | ||
|
||
```kotlin | ||
df.convert { name }.asFrame { it.add("fullName") { "$firstName $lastName" } } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, doc updates!
@@ -111,6 +114,9 @@ public inline fun <T, C, reified R> Convert<T, C>.with( | |||
noinline rowConverter: RowValueExpression<T, C, R> | |||
): DataFrame<T> = with(Infer.Nulls, rowConverter) | |||
|
|||
public fun <T, C, R> Convert<T, DataRow<C>>.asFrame(body: ColumnsContainer<T>.(ColumnGroup<C>) -> DataFrame<R>): DataFrame<T> = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it covered by unit test? please add
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a JUnit test is missed
9454d2c
to
efcef69
Compare
Generated sources will be updated after merging this PR. |
No description provided.