{"id":468760,"date":"2024-04-25T07:53:39","date_gmt":"2024-04-25T06:53:39","guid":{"rendered":"https:\/\/blog.jetbrains.com\/?post_type=kotlin&#038;p=468760"},"modified":"2024-04-25T07:55:09","modified_gmt":"2024-04-25T06:55:09","slug":"data-analytics-with-kotlin-notebooks-dataframe-and-kandy","status":"publish","type":"kotlin","link":"https:\/\/blog.jetbrains.com\/zh-hans\/kotlin\/2024\/04\/data-analytics-with-kotlin-notebooks-dataframe-and-kandy\/","title":{"rendered":"\u4f7f\u7528 Kotlin Notebook\u3001DataFrame \u548c Kandy \u5206\u6790\u6570\u636e"},"content":{"rendered":"<p>\u4ee5\u4ea4\u4e92\u5f0f\u65b9\u5f0f\u63a2\u7d22\u548c\u76f4\u89c2\u5448\u73b0\u6570\u636e\uff0c\u7528\u6237\u80fd\u591f\u627e\u51fa\u9759\u6001\u5206\u6790\u53ef\u80fd\u65e0\u6cd5\u7acb\u5373\u5c55\u73b0\u7684\u9690\u85cf\u6a21\u5f0f\u3001\u8d8b\u52bf\u548c\u5173\u7cfb\u3002 \u8fd9\u79cd\u5373\u65f6\u53cd\u9988\u8ba9\u7528\u6237\u53ef\u4ee5\u5feb\u901f\u9a8c\u8bc1\u5047\u8bbe\u3001\u8bc6\u522b\u5f02\u5e38\u503c\u6216\u5f02\u5e38\u60c5\u51b5\uff0c\u5e76\u8c03\u6574\u5206\u6790\u3002<\/p>\n<p><a href=\"https:\/\/plugins.jetbrains.com\/plugin\/16340-kotlin-notebook\" target=\"_blank\" rel=\"noopener\">Kotlin Notebook<\/a> \u662f\u7528\u4e8e\u5728 IntelliJ IDEA \u4e2d\u63a2\u7d22\u6570\u636e\u7684\u4fbf\u6377\u5de5\u5177\u3002 \u5b83\u4f7f\u7528 <a href=\"https:\/\/kotlinlang.org\/docs\/data-science-overview.html#jupyter-kotlin-kernel\" target=\"_blank\" rel=\"noopener\">Kotlin \u5185\u6838<\/a>\u5728\u5355\u5143\u4e2d\u6267\u884c Kotlin \u4ee3\u7801\u7684\u7247\u6bb5\uff0c\u7136\u540e\u5728\u7f16\u8f91\u5668\u4e2d\u5448\u73b0\u6570\u636e\u3002 \u5b83\u96c6\u6210\u4e86\u591a\u79cd\u5e93\u6765\u7b80\u5316\u6570\u636e\u5206\u6790\uff0c\u4f8b\u5982\u7528\u4e8e\u6570\u636e\u5904\u7406\u7684 <a href=\"https:\/\/github.com\/Kotlin\/dataframe\" target=\"_blank\" rel=\"noopener\">Kotlin DataFrame<\/a> \u548c\u7528\u4e8e\u56fe\u8868\u521b\u5efa\u7684 <a href=\"https:\/\/kotlin.github.io\/kandy\/welcome.html\" target=\"_blank\" rel=\"noopener\">Kandy<\/a>\u3002<\/p>\n<p>\u6700\u8fd1\uff0cRoman \u548c Anton \u63a2\u7d22\u4e86\u6570\u636e\u5206\u6790\u5de5\u5177\u7684\u5a01\u529b\uff08<a href=\"https:\/\/www.youtube.com\/watch?v=_RYV7ZvMKpE\" target=\"_blank\" rel=\"noopener\">\u76f4\u64ad\u5f55\u50cf<\/a>\uff09\u3002 \u5728\u8fd9\u7bc7\u535a\u6587\u4e2d\uff0c\u6211\u4eec\u6dfb\u52a0\u4e86\u76f4\u64ad\u4e2d\u7684\u793a\u4f8b\uff0c\u8ba9\u60a8\u53ef\u4ee5\u65b9\u4fbf\u5730\u4f7f\u7528 DataFrame \u548c Kandy \u5e93\u5c1d\u8bd5 Kotlin Notebook \u63d2\u4ef6\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u4f7f\u7528\u6211\u4eec\u4e3a\u60a8\u51c6\u5907\u7684\u9879\u76ee\u63a2\u7d22 <a href=\"https:\/\/github.com\/antonarhipov\/kotlin-notebooks-demo\" target=\"_blank\" rel=\"noopener\">GitHub \u4ed3\u5e93<\/a>\u3002 \u9879\u76ee\u5305\u542b\u76f4\u64ad\u671f\u95f4\u4f7f\u7528\u7684 CSV \u6587\u4ef6\uff0c\u60a8\u53ef\u4ee5\u7531\u6b64\u5c1d\u8bd5\u91cd\u5efa\u6f14\u793a\u7684\u793a\u4f8b\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u5f00\u59cb\u4f7f\u7528 Kotlin Notebook<\/h2>\n<p>\u8981\u5f00\u59cb\u4f7f\u7528 Kotlin Notebook\uff0c\u60a8\u53ea\u9700\u8f6c\u5230 IntelliJ IDEA Ultimate \u4e2d\u7684 <em>Settings | Plugins<\/em>\uff08\u8bbe\u7f6e | \u63d2\u4ef6\uff09\u6807\u7b7e\u9875\u5e76\u4ece JetBrains Marketplace \u5b89\u88c5<a href=\"https:\/\/plugins.jetbrains.com\/plugin\/16340-kotlin-notebook\" target=\"_blank\" rel=\"noopener\">\u63d2\u4ef6<\/a>\u3002 \u5b89\u88c5\u63d2\u4ef6\u540e\uff0c\u60a8\u5c31\u53ef\u4ee5\u4f7f\u7528 <em>New | Kotlin Notebook<\/em>\uff08\u65b0\u5efa | Kotlin Notebook\uff09\u64cd\u4f5c\u521b\u5efa\u60a8\u7684\u7b2c\u4e00\u4e2a Notebook\uff1a<\/p>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-460637\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/03\/Kotlin-create-new-notebook.png\" alt=\"\" width=\"1730\" height=\"1000\" \/><\/figure>\n<p>\u521b\u5efa\u540e\uff0cNotebook \u5c06\u5305\u542b\u4e00\u4e2a\u7a7a\u5355\u5143\u3002 \u5355\u5143\u662f Notebook \u7684\u4e3b\u8981\u7ec4\u4ef6\uff0c\u53ef\u4ee5\u5305\u542b\u4ee3\u7801\u6216\u6587\u672c\u3002 \u8981\u8fd0\u884c\u4ee3\u7801\u5355\u5143\uff0c\u8bf7\u70b9\u51fb <em>Run<\/em>\uff08\u8fd0\u884c\uff09\u6309\u94ae\u6216\u4f7f\u7528 <em>Ctrl+Enter<\/em> \u5feb\u6377\u952e\u3002 \u4ee3\u7801\u5c06\u88ab\u6267\u884c\uff0c\u8f93\u51fa\u6216\u9519\u8bef\u5c06\u5728\u5355\u5143\u4e0b\u65b9\u663e\u793a\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u589e\u91cf\u6267\u884c\u5355\u5143\uff0c\u8fd9\u6837\u5148\u524d\u6267\u884c\u7684\u5355\u5143\u6240\u505a\u7684\u8ba1\u7b97\u65e0\u9700\u91cd\u65b0\u8fd0\u884c\u5373\u53ef\u4f7f\u7528\u3002 <a href=\"https:\/\/blog.jetbrains.com\/kotlin\/2023\/07\/introducing-kotlin-notebook\/\">\u8fd9\u7bc7\u535a\u6587<\/a>\u4ecb\u7ecd\u4e86 Kotlin Notebook \u7684\u57fa\u7840\u77e5\u8bc6\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u4f7f\u7528 DataFrame \u8bfb\u53d6\u548c\u63a2\u7d22\u6570\u636e<\/h2>\n<p>\u6211\u4eec\u4ece Notebook \u5f00\u59cb\uff0c\u770b\u4e00\u770b\u5982\u4f55\u4f7f\u7528 DataFrame \u5e93\u5206\u6790\u6570\u636e\u3002 \u6570\u636e\u6e90\u662f\u8fd9\u4e2a <a href=\"https:\/\/github.com\/antonarhipov\/kotlin-notebooks-demo\/blob\/main\/data\/ams_weather.csv\" target=\"_blank\" rel=\"noopener\">CSV \u6587\u4ef6<\/a>\uff0c\u5176\u4e2d\u5305\u542b\u5728\u963f\u59c6\u65af\u7279\u4e39\u5730\u533a\u6536\u96c6\u7684\u5929\u6c14\u4fe1\u606f\u3002<\/p>\n<p>\u5c06 CSV \u6587\u4ef6\u4ece <em>Project<\/em>\uff08\u9879\u76ee\uff09\u89c6\u56fe\u62d6\u653e\u5230 Notebook \u5355\u5143\u4e2d\u3002 Notebook \u4f1a\u81ea\u52a8\u751f\u6210\u5f15\u5bfc\u4ee3\u7801\uff0c\u5c06 DataFrame \u5e93\u6dfb\u52a0\u4e3a\u4f9d\u8d56\u9879\u5e76\u8bfb\u53d6 CSV \u6587\u4ef6\u3002<\/p>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-460626\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/03\/getting-started-with-kn-and-df-short.gif\" alt=\"\" width=\"1280\" height=\"720\" \/><\/figure>\n<p>\u6570\u636e\u6709\u4e0d\u540c\u7684\u683c\u5f0f\uff0c\u60a8\u9700\u8981\u6839\u636e\u7528\u4f8b\u8c03\u6574\u89e3\u6790\u9009\u9879\u3002 \u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u4e3a\u89e3\u6790\u6307\u5b9a\u5206\u9694\u7b26\u6216\u65e5\u671f\u683c\u5f0f\u3002 \u6709\u5173\u8be6\u60c5\uff0c\u8bf7\u53c2\u9605 <a href=\"https:\/\/kotlin.github.io\/dataframe\/read.html#column-type-inference-from-csv\" target=\"_blank\" rel=\"noopener\">API \u6587\u6863<\/a>\u3002<\/p>\n<p>\u5217\u7c7b\u578b\u9ed8\u8ba4\u63a8\u65ad\u81ea CSV \u6570\u636e\u3002 \u56e0\u6b64\uff0c\u6211\u4eec\u80fd\u591f\u4ee5 Kotlin \u7f16\u8bd1\u5668\u652f\u6301\u7684\u7c7b\u578b\u5b89\u5168\u65b9\u5f0f\u5904\u7406\u6570\u636e\u3002 \u8bfb\u53d6\u6570\u636e\u540e\uff0c\u60a8\u53ef\u4ee5\u5728 DataFrame \u5b9e\u4f8b\u4e0a\u4f7f\u7528 <a href=\"https:\/\/kotlin.github.io\/dataframe\/schema.html\" target=\"_blank\" rel=\"noopener\">schema<\/a> \u51fd\u6570\u68c0\u67e5\u63a8\u65ad\u7684\u7c7b\u578b\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-460648\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/03\/Kotlin-Notebooks-DF-schema.png\" alt=\"\" width=\"3176\" height=\"1870\" \/><\/figure>\n<p>\u8fd8\u53ef\u4ee5\u4f7f\u7528 <a href=\"https:\/\/kotlin.github.io\/dataframe\/describe.html\" target=\"_blank\" rel=\"noopener\">describe<\/a> \u51fd\u6570\u5feb\u901f\u83b7\u5f97\u6570\u636e\u7684\u7edf\u8ba1\u6982\u89c8\uff1a<\/p>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-460659\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/03\/Kotlin-Notebooks-DF-describe.png\" alt=\"\" width=\"3512\" height=\"1480\" \/><\/figure>\n<p><a href=\"https:\/\/kotlin.github.io\/dataframe\/describe.html\" target=\"_blank\" rel=\"noopener\">describe<\/a> \u51fd\u6570\u63d0\u4f9b\u6570\u636e\u7edf\u8ba1\u4fe1\u606f\uff1a\u6570\u503c\u5217\u7684\u6700\u5927\u503c\u548c\u6700\u5c0f\u503c\u3001\u552f\u4e00\u503c\u548c\u7a7a\u503c\u7684\u8ba1\u6570\u7b49\u3002 \u8fd9\u4e9b\u7edf\u8ba1\u53ef\u4ee5\u534f\u52a9\u8fdb\u4e00\u6b65\u7684\u6570\u636e\u63a2\u7d22\u3002<\/p>\n<p>DataFrame API \u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u6570\u636e\u64cd\u4f5c\u9009\u9879\uff1a<a href=\"https:\/\/kotlin.github.io\/dataframe\/columnselectors.html\" target=\"_blank\" rel=\"noopener\">\u9009\u62e9<\/a>\u3001<a href=\"https:\/\/kotlin.github.io\/dataframe\/filter.html\" target=\"_blank\" rel=\"noopener\">\u7b5b\u9009<\/a>\u3001<a href=\"https:\/\/kotlin.github.io\/dataframe\/groupby.html#aggregation\" target=\"_blank\" rel=\"noopener\">\u805a\u5408\u64cd\u4f5c<\/a>\u7b49\u3002<\/p>\n<p>\u4e0b\u56fe\u663e\u793a\u4e86\u7b5b\u9009\u7684\u793a\u4f8b\u3002 \u6570\u636e\u5df2\u7b5b\u9009\u81f3 2023 \u5e74\uff0c\u4ec5\u5305\u542b\u201cdatetime\u201d\u5217\u4ee5\u53ca\u6807\u9898\u4e2d\u5305\u542b\u201cwind\u201d\u4e00\u8bcd\u7684\u5217\uff1a<\/p>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-460670\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/03\/Kotlin-Notebooks-DF-column-selectors.png\" alt=\"\" width=\"2112\" height=\"980\" \/><\/figure>\n<p>\u5047\u8bbe\uff0c\u6211\u4eec\u60f3\u8981\u63a2\u7d22\u6570\u636e\u4ee5\u627e\u5230\u7edf\u8ba1\u6e29\u5ea6\u6700\u9ad8\u7684\u5e74\u4efd\u3002 \u6211\u4eec\u53ef\u4ee5\u91c7\u53d6\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u9996\u5148\uff0c\u6839\u636e `temp` \u7279\u6027\u4ee5\u964d\u5e8f\u5bf9 DataFrame \u5b9e\u4f8b\u7684\u5143\u7d20\u8fdb\u884c\u6392\u5e8f\u3002 \u7136\u540e\uff0c\u4fdd\u7559\u6b64\u6392\u5e8f\u5217\u8868\u7684\u524d 30 \u4e2a\u5143\u7d20\u3002 \u7136\u540e\uff0c\u57fa\u4e8e\u201cdatetime\u201d\u7684\u201cyear\u201d\u7279\u6027\u7684\u4efb\u4f55\u91cd\u590d\u5143\u7d20\u90fd\u5e94\u88ab\u79fb\u9664\u3002 \u5f97\u51fa\u7684\u5217\u8868\u5c06\u5305\u542b\u5177\u6709\u6700\u9ad8 temp \u503c\u7684 30 \u4e2a\u5143\u7d20\u4e2d\u7684\u72ec\u7279\u5143\u7d20\uff08\u4ee5\u5e74\u4efd\u4e3a\u5355\u4f4d\uff09\u3002<\/p>\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-460681\" style=\"aspect-ratio: 2.05607476635514; width: 662px; height: auto;\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/03\/Kotlin-Notebooks-DF-sortBy-and-distinct-year.png\" alt=\"\" width=\"1320\" height=\"642\" \/><\/figure>\n<p>\u6211\u4eec\u9700\u8981\u4ece\u201cdatetime\u201d\u5217\u503c\u4e2d\u63d0\u53d6\u201cyear\u201d\u3002 \u4e3a\u6b64\uff0c\u6211\u4eec\u4f7f\u7528 <em>expr<\/em> \u51fd\u6570\uff0c\u5b83\u4f1a\u521b\u5efa\u4e00\u4e2a\u4ec5\u5305\u542b\u5e74\u4efd\u7684\u4e34\u65f6\u8868\u8fbe\u5f0f\u5217\u3002 \u7136\u540e\uff0c\u8868\u8fbe\u5f0f\u4f5c\u4e3a\u5f62\u53c2\u63d0\u4f9b\u7ed9 `distinct` \u51fd\u6570\u6765\u83b7\u5f97\u6700\u7ec8\u7ed3\u679c\u3002<\/p>\n<p>\u4ece\u7edf\u8ba1\u6570\u636e\u6765\u770b\uff0c\u8fd1\u5e74\u6765\u5929\u6c14\u8d8a\u6765\u8d8a\u6696\u3002 \u7136\u800c\uff0c\u8fd9\u6837\u7684\u8d8b\u52bf\u4ec5\u51ed\u6570\u5b57\u96be\u4ee5\u8bc6\u522b\u3002 \u5982\u679c\u4ee5\u76f4\u89c2\u65b9\u5f0f\u5448\u73b0\uff0c\u6570\u636e\u5c31\u4f1a\u66f4\u5bb9\u6613\u7406\u89e3\u3002 \u4e3a\u6b64\uff0c\u6211\u4eec\u4f7f\u7528 Kandy \u5e93\u521b\u5efa\u4e00\u4e9b\u56fe\u8868\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u4f7f\u7528 Kandy \u76f4\u89c2\u5448\u73b0\u6570\u636e<\/h2>\n<p>\u9488\u5bf9\u7ed8\u56fe\uff0c\u6211\u4eec\u6700\u8fd1<a href=\"https:\/\/blog.jetbrains.com\/kotlin\/2023\/12\/kandy-the-new-kotlin-plotting-library-by-jetbrains\/\">\u5f15\u5165<\/a>\u4e86 Kandy \u5e93\u3002 Kandy \u53ef\u4ee5\u7528\u4f5c\u72ec\u7acb\u5e93\u6765\u751f\u6210\u56fe\u8868\uff0c\u4e5f\u53ef\u4ee5\u65b9\u4fbf\u5730\u4e0e Kotlin Notebook \u96c6\u6210\u3002 \u5e93\u63d0\u4f9b\u7684\u7b80\u5355 DSL \u80fd\u591f\u751f\u6210\u5404\u7c7b\u56fe\u8868\u3002 \u4e30\u5bcc\u7684<a href=\"https:\/\/kotlin.github.io\/kandy\/examples.html\" target=\"_blank\" rel=\"noopener\">\u793a\u4f8b\u56fe\u5e93<\/a>\u5305\u542b\u53ef\u4ee5\u4f7f\u7528 Kandy \u751f\u6210\u7684\u591a\u79cd\u56fe\u8868\u3002<\/p>\n<p>\u5c06 <em>%use kandy<\/em> \u884c\u6dfb\u52a0\u5230\u5355\u5143\u5e76\u6267\u884c\uff0c\u5373\u53ef\u5f00\u59cb\u7ed3\u5408\u4f7f\u7528 Kandy \u4e0e Kotlin Notebook\u3002 \u8fd9\u5c06\u81ea\u52a8\u52a0\u8f7d\u6700\u65b0\u7a33\u5b9a\u7248\u672c\u7684 Kandy\uff0c\u6dfb\u52a0\u6240\u6709\u5fc5\u8981 import\uff0c\u5e76\u6dfb\u52a0\u7ed8\u56fe\u5448\u73b0\u3002<\/p>\n<p>\u5bf9\u4e8e DataFrame\uff0cKandy \u63d0\u4f9b\u4e86 <em>plot<\/em> \u6269\u5c55\u51fd\u6570\u6765\u76f4\u89c2\u5448\u73b0\u6570\u636e\u3002 \u8fd9\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5feb\u901f\u7ed8\u5236\u793a\u4f8b\u4e2d\u7684\u56fe\u8868\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u6309\u65e5\u671f\u7ed8\u5236\u6e29\u5ea6\u503c\u3002 \u53ea\u9700\u9009\u62e9\u56fe\u8868\u7c7b\u578b\u201cline\u201d\uff0c\u7136\u540e\u6620\u5c04\u503c\uff1a\u6e29\u5ea6\u503c\u6620\u5c04\u5230 y \u8f74\uff0c\u5e74\u4efd\u5c06\u663e\u793a\u5728 x \u8f74\u4e0a\u3002 \u6b64\u5916\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u6839\u636e\u6e7f\u5ea6\u6539\u53d8\u7ed8\u56fe\u7ebf\u7684\u989c\u8272 \u2013 \u8fd9\u5c06\u6709\u52a9\u4e8e\u6df1\u5165\u5c55\u793a\u6e29\u5ea6\u4e0e\u6e7f\u5ea6\u4e4b\u95f4\u7684\u76f8\u5173\u6027\u3002 \u4ece\u7ed3\u679c\u6765\u770b\uff0c\u6211\u4eec\u53ef\u4ee5\u5f97\u51fa\u7ed3\u8bba\uff1a\u6e29\u5ea6\u8d8a\u4f4e\uff0c\u6e7f\u5ea6\u8d8a\u5927\u3002<\/p>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-460692\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/03\/Kotlin-Notebooks-Kandy.png\" alt=\"\" width=\"3154\" height=\"1904\" \/><\/figure>\n<h2 class=\"wp-block-heading\">\u603b\u7ed3<\/h2>\n<p>Kotlin Notebook \u662f\u5177\u6709\u591a\u79cd\u8f93\u51fa\u7684\u4ea4\u4e92\u5f0f\u5de5\u4f5c\u8868\uff0c\u53ef\u7528\u4e8e\u63a2\u7d22\u548c\u6d4b\u8bd5 Kotlin \u4ee3\u7801\uff0c\u65e0\u9700\u989d\u5916\u73af\u5883\u8bbe\u7f6e\u3002<\/p>\n<p>\u501f\u52a9 Kotlin DataFrame \u548c <a href=\"https:\/\/kotlin.github.io\/kandy\/welcome.html\" target=\"_blank\" rel=\"noopener\">Kandy<\/a> \u7b49\u96c6\u6210\u5e93\uff0c\u60a8\u53ef\u4ee5\u63a2\u7d22\u3001\u76f4\u89c2\u5448\u73b0\u3001\u67e5\u627e\u6a21\u5f0f\uff0c\u4ee5\u53ca\u4e86\u89e3\u6709\u5173\u6570\u636e\u7684\u6709\u8da3\u4fe1\u606f\u3002 \u00a0\u60a8\u53ef\u4ee5\u63a2\u7d22\u672c\u6587\u63d0\u4f9b\u7684<a href=\"https:\/\/github.com\/antonarhipov\/kotlin-notebooks-demo\" target=\"_blank\" rel=\"noopener\">\u4ed3\u5e93\u548c\u793a\u4f8b<\/a>\uff0c\u5feb\u901f\u4e0a\u624b Kotlin Notebook\u3002<\/p>\n<p>\u5982\u9700\u8be6\u7ec6\u4e86\u89e3\u9762\u5411\u6570\u636e\u79d1\u5b66\u7684 Kotlin\uff0c\u53ef\u4ee5<a href=\"https:\/\/kotlinlang.org\/docs\/data-science-overview.html\" target=\"_blank\" rel=\"noopener\">\u67e5\u770b\u6587\u6863\u4e2d\u7684\u5165\u53e3\u9875\u9762<\/a>\u548c\u52a0\u5165 <a href=\"https:\/\/slack-chats.kotlinlang.org\/c\/datascience\" target=\"_blank\" rel=\"noopener\">Kotlin Slack \u4e2d\u7684 #datascience \u9891\u9053<\/a>\u3002<\/p>\n\n\n<p><\/p>\n\n\n\n<p>\u672c\u535a\u6587\u82f1\u6587\u539f\u4f5c\u8005\uff1a<\/p>\n\n\n    <div class=\"about-author \">\n        <div class=\"about-author__box\">\n            <div class=\"row\">\n                <div class=\"about-author__box-img\">\n                    <img decoding=\"async\" src=\"https:\/\/secure.gravatar.com\/avatar\/?s=200&#038;r=g\" width=\"200\" height=\"200\" alt=\"\" loading=\"lazy\"  class=\"avatar avatar-200 wp-user-avatar wp-user-avatar-200 photo avatar-default\">\n                <\/div>\n                <div class=\"about-author__box-text\">\n                                                        <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n","protected":false},"author":1297,"featured_media":460714,"comment_status":"closed","ping_status":"closed","template":"","categories":[909,4759],"tags":[7144,8457,21,1017],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/kotlin\/468760"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/kotlin"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/types\/kotlin"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/users\/1297"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=468760"}],"version-history":[{"count":10,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/kotlin\/468760\/revisions"}],"predecessor-version":[{"id":468770,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/kotlin\/468760\/revisions\/468770"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media\/460714"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=468760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=468760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=468760"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/cross-post-tag?post=468760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}