Skip to content

Functions inline #1123

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

Merged
merged 7 commits into from
Apr 11, 2025
Merged

Functions inline #1123

merged 7 commits into from
Apr 11, 2025

Conversation

AndrewKis
Copy link
Contributor

@AndrewKis AndrewKis commented Apr 9, 2025

andrei.kislitsyn added 5 commits March 26, 2025 16:45
# Conflicts:
#	core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/max.kt
#	core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/min.kt
#	core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/Utils.kt
@AndrewKis AndrewKis changed the title Functions inline copy Functions inline Apr 9, 2025
@Jolanrensen Jolanrensen self-requested a review April 10, 2025 11:29
@AndrewKis
Copy link
Contributor Author

So, now also closes #820.

* __`.`__[**`into`**][GroupClause.into]**`(`**`groupName: `[`String`][String]**`)`**
*
* {@include [Indent]}
* __`.`__[**`into`**][GroupClause.into]**` { `**`groupNameExpression: `[`ColumnsSelector`][ColumnsSelector]**` } `**
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is not right, it's a different kind of function. First of all, it's not ColumnsSelector as that would allow selecting multiple columns. Second, it provides the original column (with path) as argument. Finally, you're allowed to return either a String or a column reference. It may be best to extract the definition for groupNameExpression to the top and explain the arguments and return types a bit more exact.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed now looks like this:
image

@Jolanrensen Jolanrensen self-requested a review April 11, 2025 10:33
@AndrewKis AndrewKis merged commit 131e6a6 into master Apr 11, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Functions that cán be inlined should be inlined Add KDocs for group/ungroup
2 participants