[Google Colab] Google Drive上にあるJSONを読み込む方法

google.colabのdriveライブラリを読み込む

# Mount Google Drive to Colab
from google.colab import drive
drive.mount('/content/drive')

import pandas as pd
from IPython.display import display

# Path to the CSV file in your Google Drive
csv_file_path = '/content/drive/MyDrive/path/to/your/file.csv'

# Load the CSV file into a Pandas DataFrame
data_frame = pd.read_csv(csv_file_path, header=None)  # Assuming there's no header in your CSV

# Display the DataFrame as a table
display(data_frame)

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です