Migration to 1.0
Deprecations and removals
As we move toward version 1.0, many functions have been changed, deprecated, or removed. This section provides a complete overview of all API changes to help you migrate to 1.0.
Renamed functions and classes to the correct CamelCase spelling
All functions and classes in Kotlin DataFrame have been renamed to the correct CamelCase spelling.
See below for a complete list of the renamed functions and classes.
Migration to Deephaven CSV
All CSV (as well as TSV) IO was migrated to a new, fast, and efficient Deephaven CSV implementation. It significantly improves CSV IO performance and brings many new parametrization options.
All related methods are now located in the separate dataframe-csv module (which is included by default in the general dataframe artifact and in %use dataframe in Kotlin Notebook).
Functions were also renamed to the correct CamelCase spelling.
All new functions keep the same arguments as before and additionally introduce new ones. Also, there are new arguments that expose Deephaven CSV features.
See Read from CSV.
0.15 | 1.0 |
|---|---|
|
|
|
|
|
|
|
|
|
|
Migration to Standard Library Instant
Since Kotlin 2.1.20, Instant is now part of the standard library
(as kotlin.time.Instant). You can still use the old (deprecated) kotlinx.datetime.Instant type, but its support will be removed in Kotlin DataFrame 1.1.
For now, each Instant-related operation has been split into two new ones — one for the new stdlib kotlin.time.Instant and one for the old deprecated kotlinx.datetime.Instant. The behavior of old operations remains unchanged: they work with kotlinx.datetime.Instant and raise ERROR in 1.0. In version 1.1, they will be returned and will operate on the new stdlib kotlin.time.Instant.
0.15 | 1.0 | Note |
|---|---|---|
|
|
|
| Will be renamed back into | |
|
|
|
| Will be renamed back into | |
|
|
|
| Will be renamed back into |
In version 1.0, all parsing operations still convert Instant values into the deprecated kotlinx.datetime.Instant. To enable parsing into the new standard library kotlin.time.Instant, set the corresponding parsing option ParserOptions.parseExperimentalInstant (that will be default in 1.1). For example:
Deprecation of cols() and other methods in Columns Selection DSL
cols() overloads without arguments, which select all columns of a DataFrame or all subcolumns inside a column group in the Columns Selection DSL, are deprecated in favor of all() and allCols() respectively. These replacements allow the Compiler Plugin to fully support such selections.
colsAtAnyDepth(), colsInGroups(), and single() overloads with a predicate argument that filters columns are also deprecated for better Compiler Plugin support. Use .filter(predicate) for filtering instead.
0.15 | 1.0 |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Removed functions and classes
The next functions and classes raise ERROR in 1.0 and will be removed in 1.1.
0.15 | 1.0 | Reason |
|---|---|---|
|
| Replaced with another function. |
|
| Replaced with another function. |
|
| Replaced with another function. |
|
| Renamed to better reflect its purpose. |
|
| Replaced with another function. |
|
| Renamed to better reflect its purpose. |
|
| Renamed to better reflect its purpose. |
|
| Renamed to better reflect its purpose. |
|
| Renamed to better reflect its purpose. |
|
| Renamed to better reflect its purpose. |
|
| Renamed to better reflect its purpose. |
|
| Renamed to better reflect its purpose. |
|
| Renamed to the correct CamelCase. |
|
| Renamed to the correct CamelCase. |
|
| Renamed to the correct CamelCase. |
|
| Renamed to the correct CamelCase. |
|
| Replaced with another function. |
|
| Renamed to the correct CamelCase. |
|
| Renamed to the correct CamelCase. |
|
| Replaced with another function. |
|
| Renamed to better reflect its purpose. |
|
| Renamed to better reflect its purpose. |
The next functions and classes raise WARNING in 1.0 and ERROR in 1.1.
0.15 | 1.0 | Reason |
|---|---|---|
|
| Removed a shortcut to clarify the behaviour; Only for |
|
| Replaced with another function. |
|
| Replaced with another function. |
|
| Removed duplicated functionality. |
|
| Removed a shortcut to clarify the behaviour; Only for |
|
| Removed a shortcut to clarify the behaviour; Only for |
|
| Renamed to to improve completion. |
|
| Removed a shortcut to clarify the behaviour; |
|
| Removed a shortcut to clarify the behaviour; |
|
| Removed a shortcut to clarify the behaviour; |
|
| Removed duplicated functionality. |