Skip to content

Conversation

@koperagen
Copy link
Collaborator

@koperagen koperagen commented Dec 18, 2025

They're already not used on the website for a while.

@koperagen koperagen added this to the 1.0.0-Beta5 milestone Dec 18, 2025
@koperagen koperagen self-assigned this Dec 18, 2025
@koperagen koperagen added the examples Something related to the examples label Dec 18, 2025
@koperagen koperagen changed the title Remove deprecated and unused access api examples from ApiLevels.kt and Analyze.kt Remove deprecated and unused access api examples and migrate multi-column add/map Dec 18, 2025
@koperagen koperagen force-pushed the remove-unused-access-api-examples branch from 7dcc56e to 4d44edf Compare December 18, 2025 12:05
configuration = SamplesDisplayConfiguration.copy(
cellFormatter = { row, col ->
val value = row[col]
val value = col[row]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xD

* For more information: {@include [DocumentationUrls.AccessApis.ExtensionPropertiesApi]}
*
* For example: {@comment This works if you include the test module when running KoDEx}
* For example, in notebooks extension properties are generated from runtime data after the cell is executed: {@comment This works if you include the test module when running KoDEx}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can put the @comment on the next line, if you write it without {}, there should be no newline in between executed: and @sample

"year of birth" from 2021 - "age"<Int>()
"age"<Int>() gt 18 into "is adult"
"year of birth" from { 2021 - "age"<Int>() }
expr { "age"<Int>() > 18 } into "is adult"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we could alternate with other, more kotlinlike notations, such as "age<Int>().map { it > 18 } into "is adult"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do like we have more expr examples :) Feels like the concept is not well known

}

fun DataFrame<Person>.countAdults() = count { it[Person::age] > 18 }
fun DataFrame<Person>.countAdults() = count { it.age > 18 }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't need it right?

Copy link
Collaborator

@Jolanrensen Jolanrensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! A very welcome cleanup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

examples Something related to the examples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants