Skip to content

Commit c5b98d5

Browse files
Merge branch 'fix_geodf_jupyter' into fix_jupyter_logger
2 parents 3741d83 + 1d21d5e commit c5b98d5

File tree

1 file changed

+6
-1
lines changed
  • dataframe-geo-jupyter/src/main/kotlin/org/jetbrains/kotlinx/dataframe/jupyter

1 file changed

+6
-1
lines changed

dataframe-geo-jupyter/src/main/kotlin/org/jetbrains/kotlinx/dataframe/jupyter/IntegrationGeo.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ internal class IntegrationGeo : JupyterIntegration() {
5454
useSchema<WithMultiLineStringGeometry>()
5555
}
5656

57+
render<GeoDataFrame<*>> {
58+
println("GeoDataFrame with ${it.crs} CRS and inner dataframe:")
59+
it.df
60+
}
61+
5762
val replCodeGeneratorImpl = ReplCodeGeneratorImpl()
5863
replCodeGeneratorImpl.process(WithGeometry::class)
5964
replCodeGeneratorImpl.process(WithPolygonGeometry::class)
@@ -67,7 +72,7 @@ internal class IntegrationGeo : JupyterIntegration() {
6772
val generatedDf = execute(
6873
codeWithTypeCastGenerator = replCodeGeneratorImpl.process(geo.df, kProperty),
6974
expression = "(${kProperty.name}.df as DataFrame<*>)",
70-
)
75+
).let { "`" + it.toString() + "`" }
7176
val name = execute("GeoDataFrame($generatedDf, ${kProperty.name}.crs)").name
7277
name
7378
}

0 commit comments

Comments
 (0)