Get started with Kotlin DataFrame on Jupyter Notebook
Jupyter Notebook
You can use the Kotlin DataFrame library in Jupyter Notebook and in Jupyter Lab. To start, install the latest version of Kotlin kernel and start your favorite Jupyter client from the command line, for example:
In the notebook, you only have to write a single line to start using the Kotlin DataFrame library:
In this case, the version bundled with the kernel will be used. If you want always to use the latest version, add another magic before %use dataframe
:
If you want to use a specific version of the Kotlin DataFrame library, you can specify it in brackets:
After loading, all essential types will be already imported, so you can start using the Kotlin DataFrame library. Enjoy!
When the previous cell with variable declaration is executed, DataFrame
provides a data schema API based on data: