File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
dataframe-geo-jupyter/src/main/kotlin/org/jetbrains/kotlinx/dataframe/jupyter Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,11 @@ internal class IntegrationGeo : JupyterIntegration() {
54
54
useSchema<WithMultiLineStringGeometry >()
55
55
}
56
56
57
+ render<GeoDataFrame <* >> {
58
+ println (" GeoDataFrame with ${it.crs} CRS and inner dataframe:" )
59
+ it.df
60
+ }
61
+
57
62
val replCodeGeneratorImpl = ReplCodeGeneratorImpl ()
58
63
replCodeGeneratorImpl.process(WithGeometry ::class )
59
64
replCodeGeneratorImpl.process(WithPolygonGeometry ::class )
@@ -67,7 +72,7 @@ internal class IntegrationGeo : JupyterIntegration() {
67
72
val generatedDf = execute(
68
73
codeWithTypeCastGenerator = replCodeGeneratorImpl.process(geo.df, kProperty),
69
74
expression = " (${kProperty.name} .df as DataFrame<*>)" ,
70
- )
75
+ ). let { " ` " + it.toString() + " ` " }
71
76
val name = execute(" GeoDataFrame($generatedDf , ${kProperty.name} .crs)" ).name
72
77
name
73
78
}
You can’t perform that action at this time.
0 commit comments