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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5001578c24aa7fa41331132f803896004df31715a1ff64da1bc42d874b21685
|
|
| MD5 |
a1943d1a1ea507db0d99ac00653ed5cc
|
|
| BLAKE2b-256 |
f1b26f05eb0a72afb2e36cc8752bc104635706603da782b7ae511511883a3e78
|