-
Notifications
You must be signed in to change notification settings - Fork 77
Remove deprecated and unused access api examples and migrate multi-column add/map #1649
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
base: master
Are you sure you want to change the base?
Conversation
7dcc56e to
4d44edf
Compare
| configuration = SamplesDisplayConfiguration.copy( | ||
| cellFormatter = { row, col -> | ||
| val value = row[col] | ||
| val value = col[row] |
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.
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} |
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.
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" |
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.
maybe we could alternate with other, more kotlinlike notations, such as "age<Int>().map { it > 18 } into "is adult"
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.
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 } |
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.
doesn't need it right?
Jolanrensen
left a comment
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.
Thanks! A very welcome cleanup
They're already not used on the website for a while.