{ "cells": [ { "metadata": {}, "cell_type": "markdown", "source": "# Kotlin DataFrame in Kotlin Notebook simple example" }, { "metadata": {}, "cell_type": "markdown", "source": [ "## How to run it?\n", "\n", "See [Get started with Kotlin DataFrame in Kotlin Notebook](https://kotlin.github.io/dataframe/gettingstartedkotlinnotebook.html)." ] }, { "metadata": { "ExecuteTime": { "end_time": "2025-09-15T13:05:08.403461090Z", "start_time": "2025-09-15T13:05:01.072028643Z" } }, "cell_type": "code", "source": [ "%useLatestDescriptors\n", "%use dataframe" ], "outputs": [], "execution_count": 1 }, { "cell_type": "code", "metadata": { "collapsed": true, "ExecuteTime": { "end_time": "2025-09-15T13:05:12.183943393Z", "start_time": "2025-09-15T13:05:08.406404920Z" } }, "source": [ "val df = DataFrame\n", " // Read DataFrame from the CSV file.\n", " .readCsv(\"https://raw.githubusercontent.com/Kotlin/dataframe/master/data/jetbrains_repositories.csv\")\n", " // Rename column names to CamelCase.\n", " .renameToCamelCase()\n", "df" ], "outputs": [ { "data": { "text/html": [ " \n", " \n", " \n", " \n", " \n", " \n", "
fullNamehtmlUrlstargazersCounttopicswatchers
JetBrains/JPShttps://github.com/JetBrains/JPS23[]23
JetBrains/YouTrackSharphttps://github.com/JetBrains/YouTrack...115[jetbrains, jetbrains-youtrack, youtr...115
JetBrains/colorSchemeToolhttps://github.com/JetBrains/colorSch...290[]290
JetBrains/ideavimhttps://github.com/JetBrains/ideavim6120[ideavim, intellij, intellij-platform...6120
JetBrains/youtrack-vcs-hookshttps://github.com/JetBrains/youtrack...5[]5
JetBrains/youtrack-rest-ruby-libraryhttps://github.com/JetBrains/youtrack...8[]8
JetBrains/emacs4ijhttps://github.com/JetBrains/emacs4ij47[]47
JetBrains/codereview4intellijhttps://github.com/JetBrains/coderevi...11[]11
JetBrains/teamcity-nuget-supporthttps://github.com/JetBrains/teamcity...41[nuget, nuget-feed, teamcity, teamcit...41
JetBrains/Grammar-Kithttps://github.com/JetBrains/Grammar-Kit534[]534
JetBrains/intellij-starteam-pluginhttps://github.com/JetBrains/intellij...6[]6
JetBrains/la-clojurehttps://github.com/JetBrains/la-clojure218[]218
JetBrains/MPShttps://github.com/JetBrains/MPS1241[domain-specific-language, dsl]1241
JetBrains/intellij-communityhttps://github.com/JetBrains/intellij...12926[code-editor, ide, intellij, intellij...12926
JetBrains/TeamCity.ServiceMessageshttps://github.com/JetBrains/TeamCity...39[c-sharp, teamcity, teamcity-service-...39
JetBrains/youtrack-rest-python-libraryhttps://github.com/JetBrains/youtrack...118[]118
JetBrains/intellij-scalahttps://github.com/JetBrains/intellij...1066[intellij-idea, intellij-plugin, scala]1066
JetBrains/teamcity-messageshttps://github.com/JetBrains/teamcity...125[]125
JetBrains/teamcity-cpphttps://github.com/JetBrains/teamcity...27[]27
JetBrains/kotlinhttps://github.com/JetBrains/kotlin39402[compiler, gradle-plugin, intellij-pl...39402
\n", " \n", " \n", " " ], "application/kotlindataframe+json": "{\"$version\":\"2.2.0\",\"metadata\":{\"columns\":[\"fullName\",\"htmlUrl\",\"stargazersCount\",\"topics\",\"watchers\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"java.net.URL\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}],\"nrow\":562,\"ncol\":5,\"is_formatted\":false},\"kotlin_dataframe\":[{\"fullName\":\"JetBrains/JPS\",\"htmlUrl\":\"https://github.com/JetBrains/JPS\",\"stargazersCount\":23,\"topics\":\"[]\",\"watchers\":23},{\"fullName\":\"JetBrains/YouTrackSharp\",\"htmlUrl\":\"https://github.com/JetBrains/YouTrackSharp\",\"stargazersCount\":115,\"topics\":\"[jetbrains, jetbrains-youtrack, youtrack, youtrack-api]\",\"watchers\":115},{\"fullName\":\"JetBrains/colorSchemeTool\",\"htmlUrl\":\"https://github.com/JetBrains/colorSchemeTool\",\"stargazersCount\":290,\"topics\":\"[]\",\"watchers\":290},{\"fullName\":\"JetBrains/ideavim\",\"htmlUrl\":\"https://github.com/JetBrains/ideavim\",\"stargazersCount\":6120,\"topics\":\"[ideavim, intellij, intellij-platform, jb-official, kotlin, vim, vim-emulator]\",\"watchers\":6120},{\"fullName\":\"JetBrains/youtrack-vcs-hooks\",\"htmlUrl\":\"https://github.com/JetBrains/youtrack-vcs-hooks\",\"stargazersCount\":5,\"topics\":\"[]\",\"watchers\":5},{\"fullName\":\"JetBrains/youtrack-rest-ruby-library\",\"htmlUrl\":\"https://github.com/JetBrains/youtrack-rest-ruby-library\",\"stargazersCount\":8,\"topics\":\"[]\",\"watchers\":8},{\"fullName\":\"JetBrains/emacs4ij\",\"htmlUrl\":\"https://github.com/JetBrains/emacs4ij\",\"stargazersCount\":47,\"topics\":\"[]\",\"watchers\":47},{\"fullName\":\"JetBrains/codereview4intellij\",\"htmlUrl\":\"https://github.com/JetBrains/codereview4intellij\",\"stargazersCount\":11,\"topics\":\"[]\",\"watchers\":11},{\"fullName\":\"JetBrains/teamcity-nuget-support\",\"htmlUrl\":\"https://github.com/JetBrains/teamcity-nuget-support\",\"stargazersCount\":41,\"topics\":\"[nuget, nuget-feed, teamcity, teamcity-plugin]\",\"watchers\":41},{\"fullName\":\"JetBrains/Grammar-Kit\",\"htmlUrl\":\"https://github.com/JetBrains/Grammar-Kit\",\"stargazersCount\":534,\"topics\":\"[]\",\"watchers\":534},{\"fullName\":\"JetBrains/intellij-starteam-plugin\",\"htmlUrl\":\"https://github.com/JetBrains/intellij-starteam-plugin\",\"stargazersCount\":6,\"topics\":\"[]\",\"watchers\":6},{\"fullName\":\"JetBrains/la-clojure\",\"htmlUrl\":\"https://github.com/JetBrains/la-clojure\",\"stargazersCount\":218,\"topics\":\"[]\",\"watchers\":218},{\"fullName\":\"JetBrains/MPS\",\"htmlUrl\":\"https://github.com/JetBrains/MPS\",\"stargazersCount\":1241,\"topics\":\"[domain-specific-language, dsl]\",\"watchers\":1241},{\"fullName\":\"JetBrains/intellij-community\",\"htmlUrl\":\"https://github.com/JetBrains/intellij-community\",\"stargazersCount\":12926,\"topics\":\"[code-editor, ide, intellij, intellij-community, intellij-platform]\",\"watchers\":12926},{\"fullName\":\"JetBrains/TeamCity.ServiceMessages\",\"htmlUrl\":\"https://github.com/JetBrains/TeamCity.ServiceMessages\",\"stargazersCount\":39,\"topics\":\"[c-sharp, teamcity, teamcity-service-messages]\",\"watchers\":39},{\"fullName\":\"JetBrains/youtrack-rest-python-library\",\"htmlUrl\":\"https://github.com/JetBrains/youtrack-rest-python-library\",\"stargazersCount\":118,\"topics\":\"[]\",\"watchers\":118},{\"fullName\":\"JetBrains/intellij-scala\",\"htmlUrl\":\"https://github.com/JetBrains/intellij-scala\",\"stargazersCount\":1066,\"topics\":\"[intellij-idea, intellij-plugin, scala]\",\"watchers\":1066},{\"fullName\":\"JetBrains/teamcity-messages\",\"htmlUrl\":\"https://github.com/JetBrains/teamcity-messages\",\"stargazersCount\":125,\"topics\":\"[]\",\"watchers\":125},{\"fullName\":\"JetBrains/teamcity-cpp\",\"htmlUrl\":\"https://github.com/JetBrains/teamcity-cpp\",\"stargazersCount\":27,\"topics\":\"[]\",\"watchers\":27},{\"fullName\":\"JetBrains/kotlin\",\"htmlUrl\":\"https://github.com/JetBrains/kotlin\",\"stargazersCount\":39402,\"topics\":\"[compiler, gradle-plugin, intellij-plugin, kotlin, kotlin-library, maven-plugin, programming-language]\",\"watchers\":39402}]}" }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "execution_count": 2 }, { "metadata": {}, "cell_type": "markdown", "source": [ "After you run the cell above, [extension properties](https://kotlin.github.io/dataframe/extensionpropertiesapi.html) corresponding to the dataframe columns\n", "are generated and can be used for column accessing in the dataframe operations:" ] }, { "metadata": { "ExecuteTime": { "end_time": "2025-09-15T13:05:16.303095567Z", "start_time": "2025-09-15T13:05:12.894097380Z" } }, "cell_type": "code", "source": [ "val dfWithUpdatedColumns = df\n", " // Rename \"stargazersCount\" column to \"stars\".\n", " .rename { stargazersCount }.into(\"stars\")\n", " // Convert values in the \"topic\" column (which were `String` initially)\n", " // to the list of topics.\n", " .convert { topics }.with {\n", " val inner = it.removeSurrounding(\"[\", \"]\")\n", " if (inner.isEmpty()) emptyList() else inner.split(',').map(String::trim)\n", " }\n", "dfWithUpdatedColumns" ], "outputs": [ { "data": { "text/html": [ " \n", " \n", " \n", " \n", " \n", " \n", "
fullNamehtmlUrlstarstopicswatchers
JetBrains/JPShttps://github.com/JetBrains/JPS23[ ]23
JetBrains/YouTrackSharphttps://github.com/JetBrains/YouTrack...115[jetbrains, jetbrains-youtrack, youtr...115
JetBrains/colorSchemeToolhttps://github.com/JetBrains/colorSch...290[ ]290
JetBrains/ideavimhttps://github.com/JetBrains/ideavim6120[ideavim, intellij, intellij-platform...6120
JetBrains/youtrack-vcs-hookshttps://github.com/JetBrains/youtrack...5[ ]5
JetBrains/youtrack-rest-ruby-libraryhttps://github.com/JetBrains/youtrack...8[ ]8
JetBrains/emacs4ijhttps://github.com/JetBrains/emacs4ij47[ ]47
JetBrains/codereview4intellijhttps://github.com/JetBrains/coderevi...11[ ]11
JetBrains/teamcity-nuget-supporthttps://github.com/JetBrains/teamcity...41[nuget, nuget-feed, teamcity, teamcit...41
JetBrains/Grammar-Kithttps://github.com/JetBrains/Grammar-Kit534[ ]534
JetBrains/intellij-starteam-pluginhttps://github.com/JetBrains/intellij...6[ ]6
JetBrains/la-clojurehttps://github.com/JetBrains/la-clojure218[ ]218
JetBrains/MPShttps://github.com/JetBrains/MPS1241[domain-specific-language, dsl]1241
JetBrains/intellij-communityhttps://github.com/JetBrains/intellij...12926[code-editor, ide, intellij, intellij...12926
JetBrains/TeamCity.ServiceMessageshttps://github.com/JetBrains/TeamCity...39[c-sharp, teamcity, teamcity-service-...39
JetBrains/youtrack-rest-python-libraryhttps://github.com/JetBrains/youtrack...118[ ]118
JetBrains/intellij-scalahttps://github.com/JetBrains/intellij...1066[intellij-idea, intellij-plugin, scala]1066
JetBrains/teamcity-messageshttps://github.com/JetBrains/teamcity...125[ ]125
JetBrains/teamcity-cpphttps://github.com/JetBrains/teamcity...27[ ]27
JetBrains/kotlinhttps://github.com/JetBrains/kotlin39402[compiler, gradle-plugin, intellij-pl...39402
\n", " \n", " \n", " " ], "application/kotlindataframe+json": "{\"$version\":\"2.2.0\",\"metadata\":{\"columns\":[\"fullName\",\"htmlUrl\",\"stars\",\"topics\",\"watchers\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"java.net.URL\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.collections.List\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}],\"nrow\":562,\"ncol\":5,\"is_formatted\":false},\"kotlin_dataframe\":[{\"fullName\":\"JetBrains/JPS\",\"htmlUrl\":\"https://github.com/JetBrains/JPS\",\"stars\":23,\"topics\":[],\"watchers\":23},{\"fullName\":\"JetBrains/YouTrackSharp\",\"htmlUrl\":\"https://github.com/JetBrains/YouTrackSharp\",\"stars\":115,\"topics\":[\"jetbrains\",\"jetbrains-youtrack\",\"youtrack\",\"youtrack-api\"],\"watchers\":115},{\"fullName\":\"JetBrains/colorSchemeTool\",\"htmlUrl\":\"https://github.com/JetBrains/colorSchemeTool\",\"stars\":290,\"topics\":[],\"watchers\":290},{\"fullName\":\"JetBrains/ideavim\",\"htmlUrl\":\"https://github.com/JetBrains/ideavim\",\"stars\":6120,\"topics\":[\"ideavim\",\"intellij\",\"intellij-platform\",\"jb-official\",\"kotlin\",\"vim\",\"vim-emulator\"],\"watchers\":6120},{\"fullName\":\"JetBrains/youtrack-vcs-hooks\",\"htmlUrl\":\"https://github.com/JetBrains/youtrack-vcs-hooks\",\"stars\":5,\"topics\":[],\"watchers\":5},{\"fullName\":\"JetBrains/youtrack-rest-ruby-library\",\"htmlUrl\":\"https://github.com/JetBrains/youtrack-rest-ruby-library\",\"stars\":8,\"topics\":[],\"watchers\":8},{\"fullName\":\"JetBrains/emacs4ij\",\"htmlUrl\":\"https://github.com/JetBrains/emacs4ij\",\"stars\":47,\"topics\":[],\"watchers\":47},{\"fullName\":\"JetBrains/codereview4intellij\",\"htmlUrl\":\"https://github.com/JetBrains/codereview4intellij\",\"stars\":11,\"topics\":[],\"watchers\":11},{\"fullName\":\"JetBrains/teamcity-nuget-support\",\"htmlUrl\":\"https://github.com/JetBrains/teamcity-nuget-support\",\"stars\":41,\"topics\":[\"nuget\",\"nuget-feed\",\"teamcity\",\"teamcity-plugin\"],\"watchers\":41},{\"fullName\":\"JetBrains/Grammar-Kit\",\"htmlUrl\":\"https://github.com/JetBrains/Grammar-Kit\",\"stars\":534,\"topics\":[],\"watchers\":534},{\"fullName\":\"JetBrains/intellij-starteam-plugin\",\"htmlUrl\":\"https://github.com/JetBrains/intellij-starteam-plugin\",\"stars\":6,\"topics\":[],\"watchers\":6},{\"fullName\":\"JetBrains/la-clojure\",\"htmlUrl\":\"https://github.com/JetBrains/la-clojure\",\"stars\":218,\"topics\":[],\"watchers\":218},{\"fullName\":\"JetBrains/MPS\",\"htmlUrl\":\"https://github.com/JetBrains/MPS\",\"stars\":1241,\"topics\":[\"domain-specific-language\",\"dsl\"],\"watchers\":1241},{\"fullName\":\"JetBrains/intellij-community\",\"htmlUrl\":\"https://github.com/JetBrains/intellij-community\",\"stars\":12926,\"topics\":[\"code-editor\",\"ide\",\"intellij\",\"intellij-community\",\"intellij-platform\"],\"watchers\":12926},{\"fullName\":\"JetBrains/TeamCity.ServiceMessages\",\"htmlUrl\":\"https://github.com/JetBrains/TeamCity.ServiceMessages\",\"stars\":39,\"topics\":[\"c-sharp\",\"teamcity\",\"teamcity-service-messages\"],\"watchers\":39},{\"fullName\":\"JetBrains/youtrack-rest-python-library\",\"htmlUrl\":\"https://github.com/JetBrains/youtrack-rest-python-library\",\"stars\":118,\"topics\":[],\"watchers\":118},{\"fullName\":\"JetBrains/intellij-scala\",\"htmlUrl\":\"https://github.com/JetBrains/intellij-scala\",\"stars\":1066,\"topics\":[\"intellij-idea\",\"intellij-plugin\",\"scala\"],\"watchers\":1066},{\"fullName\":\"JetBrains/teamcity-messages\",\"htmlUrl\":\"https://github.com/JetBrains/teamcity-messages\",\"stars\":125,\"topics\":[],\"watchers\":125},{\"fullName\":\"JetBrains/teamcity-cpp\",\"htmlUrl\":\"https://github.com/JetBrains/teamcity-cpp\",\"stars\":27,\"topics\":[],\"watchers\":27},{\"fullName\":\"JetBrains/kotlin\",\"htmlUrl\":\"https://github.com/JetBrains/kotlin\",\"stars\":39402,\"topics\":[\"compiler\",\"gradle-plugin\",\"intellij-plugin\",\"kotlin\",\"kotlin-library\",\"maven-plugin\",\"programming-language\"],\"watchers\":39402}]}" }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "execution_count": 3 }, { "metadata": { "ExecuteTime": { "end_time": "2025-09-15T13:05:18.585727623Z", "start_time": "2025-09-15T13:05:17.187620386Z" } }, "cell_type": "code", "source": [ "val dfNew = dfWithUpdatedColumns\n", " // Filter by the number of stars:\n", " .filter { stars > 50 }\n", " // Add a new column with the number of topics.\n", " .add(\"topicCount\") { topics.size }\n", "dfNew" ], "outputs": [ { "data": { "text/html": [ " \n", " \n", " \n", " \n", " \n", " \n", "
fullNamehtmlUrlstarstopicswatcherstopicCount
JetBrains/YouTrackSharphttps://github.com/JetBrains/YouTrack...115[jetbrains, jetbrains-youtrack, youtr...1154
JetBrains/colorSchemeToolhttps://github.com/JetBrains/colorSch...290[ ]2900
JetBrains/ideavimhttps://github.com/JetBrains/ideavim6120[ideavim, intellij, intellij-platform...61207
JetBrains/Grammar-Kithttps://github.com/JetBrains/Grammar-Kit534[ ]5340
JetBrains/la-clojurehttps://github.com/JetBrains/la-clojure218[ ]2180
JetBrains/MPShttps://github.com/JetBrains/MPS1241[domain-specific-language, dsl]12412
JetBrains/intellij-communityhttps://github.com/JetBrains/intellij...12926[code-editor, ide, intellij, intellij...129265
JetBrains/youtrack-rest-python-libraryhttps://github.com/JetBrains/youtrack...118[ ]1180
JetBrains/intellij-scalahttps://github.com/JetBrains/intellij...1066[intellij-idea, intellij-plugin, scala]10663
JetBrains/teamcity-messageshttps://github.com/JetBrains/teamcity...125[ ]1250
JetBrains/kotlinhttps://github.com/JetBrains/kotlin39402[compiler, gradle-plugin, intellij-pl...394027
JetBrains/kotlin-web-demohttps://github.com/JetBrains/kotlin-w...167[ ]1670
JetBrains/intellij-plugin-verifierhttps://github.com/JetBrains/intellij...113[ ]1130
JetBrains/intellij-sampleshttps://github.com/JetBrains/intellij...146[ ]1460
JetBrains/youtrack-workflowshttps://github.com/JetBrains/youtrack...164[ ]1640
JetBrains/intellij-pluginshttps://github.com/JetBrains/intellij...1737[ ]17370
JetBrains/resharper-nugethttps://github.com/JetBrains/resharpe...94[jetbrains, nuget, resharper, resharp...945
JetBrains/mnemonicshttps://github.com/JetBrains/mnemonics66[jetbrains, mnemonic, resharper, resh...665
JetBrains/karahttps://github.com/JetBrains/kara76[ ]760
JetBrains/jeditermhttps://github.com/JetBrains/jediterm483[ ]4830
\n", " \n", " \n", " " ], "application/kotlindataframe+json": "{\"$version\":\"2.2.0\",\"metadata\":{\"columns\":[\"fullName\",\"htmlUrl\",\"stars\",\"topics\",\"watchers\",\"topicCount\"],\"types\":[{\"kind\":\"ValueColumn\",\"type\":\"kotlin.String\"},{\"kind\":\"ValueColumn\",\"type\":\"java.net.URL\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.collections.List\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"},{\"kind\":\"ValueColumn\",\"type\":\"kotlin.Int\"}],\"nrow\":137,\"ncol\":6,\"is_formatted\":false},\"kotlin_dataframe\":[{\"fullName\":\"JetBrains/YouTrackSharp\",\"htmlUrl\":\"https://github.com/JetBrains/YouTrackSharp\",\"stars\":115,\"topics\":[\"jetbrains\",\"jetbrains-youtrack\",\"youtrack\",\"youtrack-api\"],\"watchers\":115,\"topicCount\":4},{\"fullName\":\"JetBrains/colorSchemeTool\",\"htmlUrl\":\"https://github.com/JetBrains/colorSchemeTool\",\"stars\":290,\"topics\":[],\"watchers\":290,\"topicCount\":0},{\"fullName\":\"JetBrains/ideavim\",\"htmlUrl\":\"https://github.com/JetBrains/ideavim\",\"stars\":6120,\"topics\":[\"ideavim\",\"intellij\",\"intellij-platform\",\"jb-official\",\"kotlin\",\"vim\",\"vim-emulator\"],\"watchers\":6120,\"topicCount\":7},{\"fullName\":\"JetBrains/Grammar-Kit\",\"htmlUrl\":\"https://github.com/JetBrains/Grammar-Kit\",\"stars\":534,\"topics\":[],\"watchers\":534,\"topicCount\":0},{\"fullName\":\"JetBrains/la-clojure\",\"htmlUrl\":\"https://github.com/JetBrains/la-clojure\",\"stars\":218,\"topics\":[],\"watchers\":218,\"topicCount\":0},{\"fullName\":\"JetBrains/MPS\",\"htmlUrl\":\"https://github.com/JetBrains/MPS\",\"stars\":1241,\"topics\":[\"domain-specific-language\",\"dsl\"],\"watchers\":1241,\"topicCount\":2},{\"fullName\":\"JetBrains/intellij-community\",\"htmlUrl\":\"https://github.com/JetBrains/intellij-community\",\"stars\":12926,\"topics\":[\"code-editor\",\"ide\",\"intellij\",\"intellij-community\",\"intellij-platform\"],\"watchers\":12926,\"topicCount\":5},{\"fullName\":\"JetBrains/youtrack-rest-python-library\",\"htmlUrl\":\"https://github.com/JetBrains/youtrack-rest-python-library\",\"stars\":118,\"topics\":[],\"watchers\":118,\"topicCount\":0},{\"fullName\":\"JetBrains/intellij-scala\",\"htmlUrl\":\"https://github.com/JetBrains/intellij-scala\",\"stars\":1066,\"topics\":[\"intellij-idea\",\"intellij-plugin\",\"scala\"],\"watchers\":1066,\"topicCount\":3},{\"fullName\":\"JetBrains/teamcity-messages\",\"htmlUrl\":\"https://github.com/JetBrains/teamcity-messages\",\"stars\":125,\"topics\":[],\"watchers\":125,\"topicCount\":0},{\"fullName\":\"JetBrains/kotlin\",\"htmlUrl\":\"https://github.com/JetBrains/kotlin\",\"stars\":39402,\"topics\":[\"compiler\",\"gradle-plugin\",\"intellij-plugin\",\"kotlin\",\"kotlin-library\",\"maven-plugin\",\"programming-language\"],\"watchers\":39402,\"topicCount\":7},{\"fullName\":\"JetBrains/kotlin-web-demo\",\"htmlUrl\":\"https://github.com/JetBrains/kotlin-web-demo\",\"stars\":167,\"topics\":[],\"watchers\":167,\"topicCount\":0},{\"fullName\":\"JetBrains/intellij-plugin-verifier\",\"htmlUrl\":\"https://github.com/JetBrains/intellij-plugin-verifier\",\"stars\":113,\"topics\":[],\"watchers\":113,\"topicCount\":0},{\"fullName\":\"JetBrains/intellij-samples\",\"htmlUrl\":\"https://github.com/JetBrains/intellij-samples\",\"stars\":146,\"topics\":[],\"watchers\":146,\"topicCount\":0},{\"fullName\":\"JetBrains/youtrack-workflows\",\"htmlUrl\":\"https://github.com/JetBrains/youtrack-workflows\",\"stars\":164,\"topics\":[],\"watchers\":164,\"topicCount\":0},{\"fullName\":\"JetBrains/intellij-plugins\",\"htmlUrl\":\"https://github.com/JetBrains/intellij-plugins\",\"stars\":1737,\"topics\":[],\"watchers\":1737,\"topicCount\":0},{\"fullName\":\"JetBrains/resharper-nuget\",\"htmlUrl\":\"https://github.com/JetBrains/resharper-nuget\",\"stars\":94,\"topics\":[\"jetbrains\",\"nuget\",\"resharper\",\"resharper-extension\",\"resharper-plugin\"],\"watchers\":94,\"topicCount\":5},{\"fullName\":\"JetBrains/mnemonics\",\"htmlUrl\":\"https://github.com/JetBrains/mnemonics\",\"stars\":66,\"topics\":[\"jetbrains\",\"mnemonic\",\"resharper\",\"resharper-extension\",\"resharper-plugin\"],\"watchers\":66,\"topicCount\":5},{\"fullName\":\"JetBrains/kara\",\"htmlUrl\":\"https://github.com/JetBrains/kara\",\"stars\":76,\"topics\":[],\"watchers\":76,\"topicCount\":0},{\"fullName\":\"JetBrains/jediterm\",\"htmlUrl\":\"https://github.com/JetBrains/jediterm\",\"stars\":483,\"topics\":[],\"watchers\":483,\"topicCount\":0}]}" }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "execution_count": 4 }, { "metadata": { "ExecuteTime": { "end_time": "2025-09-15T13:05:19.724809784Z", "start_time": "2025-09-15T13:05:19.071724480Z" } }, "cell_type": "code", "source": [ "// Write the updated DataFrame to a CSV file.\n", "dfNew.writeCsv(\"jetbrains_repositories_new.csv\")" ], "outputs": [], "execution_count": 5 } ], "metadata": { "kernelspec": { "display_name": "Kotlin", "language": "kotlin", "name": "kotlin" }, "language_info": { "name": "kotlin", "version": "1.9.23", "mimetype": "text/x-kotlin", "file_extension": ".kt", "pygments_lexer": "kotlin", "codemirror_mode": "text/x-kotlin", "nbconvert_exporter": "" } }, "nbformat": 4, "nbformat_minor": 0 }