Skip to content

Instantly share code, notes, and snippets.

@ileasile
Created November 5, 2025 17:30
Show Gist options
  • Select an option

  • Save ileasile/730afc068ceeb6147e4a8dec39ec6d45 to your computer and use it in GitHub Desktop.

Select an option

Save ileasile/730afc068ceeb6147e4a8dec39ec6d45 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells" : [ {
"metadata" : {
"ExecuteTime" : {
"end_time" : "2025-11-05T16:41:24.529453Z",
"start_time" : "2025-11-05T16:41:22.237049Z"
},
"executionRelatedData" : {
"compiledClasses" : [ "Line_3_jupyter", "Line_4_jupyter", "Line_5_jupyter", "Line_6_jupyter", "Line_7_jupyter", "Line_8_jupyter" ]
}
},
"cell_type" : "code",
"source" : "%use dataframe",
"id" : "55dcafd88a627ad4",
"outputs" : [ ],
"execution_count" : 1
}, {
"cell_type" : "code",
"metadata" : {
"ExecuteTime" : {
"end_time" : "2025-11-05T16:41:45.436528Z",
"start_time" : "2025-11-05T16:41:40.540346Z"
},
"executionRelatedData" : {
"compiledClasses" : [ "Line_9_jupyter", "Line_10_jupyter", "Line_11_jupyter" ]
}
},
"source" : "val dataPlans = DataFrame.readJson(\"https://esimdb.com/api/client/countries/france/data-plans?page=1&locale=en\")",
"id" : "8f8c88bbd5680405",
"outputs" : [ ],
"execution_count" : 2
}, {
"metadata" : {
"ExecuteTime" : {
"end_time" : "2025-11-05T16:41:50.067043Z",
"start_time" : "2025-11-05T16:41:49.430974Z"
},
"executionRelatedData" : {
"compiledClasses" : [ "Line_12_jupyter", "Line_13_jupyter", "Line_14_jupyter" ]
}
},
"cell_type" : "code",
"source" : "val providers = dataPlans.providers",
"id" : "5e3a9d4f0ae46eaa",
"outputs" : [ ],
"execution_count" : 3
}, {
"metadata" : {
"executionRelatedData" : {
"compiledClasses" : [ "Line_16_jupyter", "Line_15_jupyter", "Line_17_jupyter" ]
}
},
"cell_type" : "code",
"source" : "providers.`683f99e07ee7f5a961c0c859`.name",
"id" : "267ee549d6674a",
"outputs" : [ ],
"execution_count" : null
}, {
"metadata" : {
"executionRelatedData" : {
"compiledClasses" : [ "Line_19_jupyter", "Line_20_jupyter" ]
}
},
"cell_type" : "code",
"source" : "providers.toDataFrame()",
"id" : "b6e05e605564eaba",
"outputs" : [ ],
"execution_count" : null
}, {
"metadata" : {
"ExecuteTime" : {
"end_time" : "2025-11-05T16:53:18.970351Z",
"start_time" : "2025-11-05T16:53:18.832935Z"
},
"executionRelatedData" : {
"compiledClasses" : [ "Line_21_jupyter" ]
}
},
"cell_type" : "code",
"source" : [ "fun AnyFrame.hasFormattedColumns() =\n", " this.getColumns { colsAtAnyDepth().colsOf<FormattedFrame<*>?>() }.isNotEmpty()" ],
"id" : "de3b10e43efb8aed",
"outputs" : [ ],
"execution_count" : 9
}, {
"metadata" : {
"ExecuteTime" : {
"end_time" : "2025-11-05T16:53:25.397839Z",
"start_time" : "2025-11-05T16:53:25.350644Z"
},
"executionRelatedData" : {
"compiledClasses" : [ "Line_22_jupyter" ]
}
},
"cell_type" : "code",
"source" : "providers.hasFormattedColumns()",
"id" : "9a66a548a1113731",
"outputs" : [ {
"data" : {
"text/plain" : [ "true" ]
},
"execution_count" : 10,
"metadata" : { },
"output_type" : "execute_result"
} ],
"execution_count" : 10
}, {
"metadata" : {
"executionRelatedData" : {
"compiledClasses" : [ "Line_24_jupyter", "Line_23_jupyter", "Line_25_jupyter" ]
},
"ExecuteTime" : {
"end_time" : "2025-11-05T16:55:27.227008Z",
"start_time" : "2025-11-05T16:55:27.157687Z"
}
},
"cell_type" : "code",
"source" : "val giveAwayTitle = providers.getColumns { colsAtAnyDepth().colsOf<FormattedFrame<*>?>() }.first()",
"id" : "304a55fc8f75a49e",
"outputs" : [ ],
"execution_count" : 13
}, {
"metadata" : {
"executionRelatedData" : {
"compiledClasses" : [ "Line_28_jupyter", "Line_27_jupyter", "Line_26_jupyter", "Line_29_jupyter" ]
},
"ExecuteTime" : {
"end_time" : "2025-11-05T17:18:37.650983Z",
"start_time" : "2025-11-05T17:18:37.591237Z"
}
},
"cell_type" : "code",
"source" : "giveAwayTitle.type",
"id" : "2adbf5278a12ebb",
"outputs" : [ {
"data" : {
"text/plain" : [ "kotlin.Nothing?" ]
},
"execution_count" : 17,
"metadata" : { },
"output_type" : "execute_result"
} ],
"execution_count" : 17
}, {
"metadata" : { },
"cell_type" : "code",
"outputs" : [ ],
"execution_count" : null,
"source" : "",
"id" : "b19de705dfea3786"
} ],
"metadata" : {
"kernelspec" : {
"display_name" : "Kotlin",
"language" : "kotlin",
"name" : "kotlin"
},
"language_info" : {
"name" : "kotlin",
"version" : "2.2.20",
"mimetype" : "text/x-kotlin",
"file_extension" : ".kt",
"pygments_lexer" : "kotlin",
"codemirror_mode" : "text/x-kotlin",
"nbconvert_exporter" : ""
}
},
"nbformat" : 4,
"nbformat_minor" : 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment