Dataframe
 
0.15

Use external Data Schemas in Jupyter

Edit page Last modified: 14 January 2025

Sometimes it is convenient to extract reusable code from Jupyter Notebook into the Kotlin JVM library. Schema interfaces should also be extracted if this code uses Custom Data Schemas.

In order to enable support them in Jupyter, you should register them in library integration class with useSchema function:

After loading this library into Jupyter notebook, schema interfaces for all DataFrame variables that match Person schema will derive from Person

Now df is assignable to DataFrame<Person> and countAdults is available: