A simple package to fetch e-stat data and convert it to a pandas DataFrame
Project description
estatpandas
estatpandas
is a Python library that simplifies downloading and processing data from e-Stat, the Japanese government's official statistics portal. The library retrieves data in JSON format and converts it to a pandas DataFrame for easy analysis and manipulation.
Installation
You can install this package using pip
: pip install estatpandas
Usage
import estatpandas as epd
api_key = "your_api_key_here"
stats_data_id = "your_stats_data_id_here"
estat_df = epd.get_estat_dataframe(api_key, stats_data_id)
print(estat_df)
Replace your_api_key_here with your actual e-Stat API key and your_stats_data_id_here with the ID of the data you want to retrieve.
License
This project is licensed under the MIT License.
日本語
estatpandas
estatpandas は、日本政府の公式統計ポータルである e-Stat からデータをダウンロードし、処理するための Python ライブラリです。このライブラリは、JSON 形式でデータを取得し、pandas DataFrame に変換して簡単に分析や操作ができるようにしています。
インストール
estatpandas をpipを使ってインストールすることができます: pip install estatpandas
使い方
import estatpandas as epd
api_key = "your_api_key_here"
stats_data_id = "your_stats_data_id_here"
estat_df = epd.get_estat_dataframe(api_key, stats_data_id)
print(estat_df)
your_api_key_here を実際の e-Stat API キーに、your_stats_data_id_here を取得したいデータの ID に置き換えてください。
ライセンス
このプロジェクトは MIT ライセンスのもとでライセンスされています。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for estatpandas-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5001578c24aa7fa41331132f803896004df31715a1ff64da1bc42d874b21685 |
|
MD5 | a1943d1a1ea507db0d99ac00653ed5cc |
|
BLAKE2b-256 | f1b26f05eb0a72afb2e36cc8752bc104635706603da782b7ae511511883a3e78 |