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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file estatpandas-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: estatpandas-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for estatpandas-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5001578c24aa7fa41331132f803896004df31715a1ff64da1bc42d874b21685
MD5 a1943d1a1ea507db0d99ac00653ed5cc
BLAKE2b-256 f1b26f05eb0a72afb2e36cc8752bc104635706603da782b7ae511511883a3e78

See more details on using hashes here.

Supported by

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