-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9e70da
commit 651cbae
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
...ources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/annotations/CandidateForRemoval.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.jetbrains.kotlinx.dataframe.annotations | ||
|
||
/** | ||
* Functions that can be replaced with other API, such as shortcuts without clean value, | ||
* or something not properly designed, and so will be considered to be removed from API. | ||
* If you see a function marked with it and think it should be kept, please let us know in the GitHub issue: | ||
* https://github.com/Kotlin/dataframe/issues/1028 | ||
*/ | ||
internal annotation class CandidateForRemoval |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/copy.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
package org.jetbrains.kotlinx.dataframe.api | ||
|
||
import org.jetbrains.kotlinx.dataframe.DataFrame | ||
|
||
import org.jetbrains.kotlinx.dataframe.annotations.CandidateForRemoval | ||
// region DataFrame | ||
|
||
@CandidateForRemoval | ||
public fun <T> DataFrame<T>.copy(): DataFrame<T> = columns().toDataFrame().cast() | ||
|
||
// endregion |