Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

estatpandas-0.1.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page