1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Jupyter Notebook: pandasでJSONファイルを読み込む

Last updated at Posted at 2019-04-11

本稿ではJupyter Notebookでpandasを使い、JSONファイルを読み込む方法を紹介する。前提として、pandasをインストールしておく

pandasでJSONファイルを読み込む

次のようなPythonコードをセルに書くとJSONファイルが読み込める

import pandas
pandas.read_json('data.json')

実行結果:

SlowTest.png

なお、read_jsonの戻り値はpandas.core.frame.DataFrameになる。

ドキュメント

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?