{"id":3477,"date":"2023-09-10T10:01:44","date_gmt":"2023-09-10T01:01:44","guid":{"rendered":"https:\/\/blue-bear.jp\/kb\/?p=3477"},"modified":"2023-09-10T10:01:45","modified_gmt":"2023-09-10T01:01:45","slug":"google-colab-google-drive%e4%b8%8a%e3%81%ab%e3%81%82%e3%82%8bjson%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%80%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blue-bear.jp\/kb\/google-colab-google-drive%e4%b8%8a%e3%81%ab%e3%81%82%e3%82%8bjson%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%80%e6%96%b9%e6%b3%95\/","title":{"rendered":"[Google Colab] Google Drive\u4e0a\u306b\u3042\u308bJSON\u3092\u8aad\u307f\u8fbc\u3080\u65b9\u6cd5"},"content":{"rendered":"\n<p>google.colab\u306edrive\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u8aad\u307f\u8fbc\u3080<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Mount Google Drive to Colab\nfrom google.colab import drive\ndrive.mount('\/content\/drive')\n\nimport pandas as pd\nfrom IPython.display import display\n\n# Path to the CSV file in your Google Drive\ncsv_file_path = '\/content\/drive\/MyDrive\/path\/to\/your\/file.csv'\n\n# Load the CSV file into a Pandas DataFrame\ndata_frame = pd.read_csv(csv_file_path, header=None)  # Assuming there's no header in your CSV\n\n# Display the DataFrame as a table\ndisplay(data_frame)\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>google.colab\u306edrive\u30e9\u30a4<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[500],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/3477"}],"collection":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/comments?post=3477"}],"version-history":[{"count":1,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/3477\/revisions"}],"predecessor-version":[{"id":3478,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/3477\/revisions\/3478"}],"wp:attachment":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media?parent=3477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/categories?post=3477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/tags?post=3477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}