modify

inline fun modify(block: DataFrame<T>.(DataFrame<T>) -> DataFrame<T>): GeoDataFrame<T>

Creates a new GeoDataFrame by applying transformations to the underlying DataFrame.

This function opens a modification scope where the current DataFrame can be transformed using Kotlin DataFrame operations. The transformation block receives the original DataFrame both as a receiver and as an explicit argument, allowing flexible modifications.

The Coordinate Reference System (CRS) remains unchanged.

Return

A new GeoDataFrame instance with the modified DataFrame while preserving the original CRS.

Parameters

block

A lambda defining the transformations to apply to the DataFrame.