eddmpython/dartlab-data
收藏资源简介:
--- license: mit task_categories: - table-question-answering - text-classification language: - ko - en tags: - finance - disclosure - dart - edgar - sec - xbrl - korea - financial-statements - corporate-filings - 전자공시 - 재무제표 - 사업보고서 - 한국 pretty_name: DartLab 전자공시 데이터 size_categories: - 1K<n<10K --- <div align="center"> <br> <img alt="DartLab" src="https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/assets/logo.png" width="160"> <h3>DartLab Data</h3> <p><b>Structured company data from DART & EDGAR disclosure filings</b></p> <p> <a href="https://github.com/eddmpython/dartlab"><img src="https://img.shields.io/badge/GitHub-dartlab-ea4647?style=for-the-badge&labelColor=050811&logo=github&logoColor=white" alt="GitHub"></a> <a href="https://pypi.org/project/dartlab/"><img src="https://img.shields.io/pypi/v/dartlab?style=for-the-badge&color=ea4647&labelColor=050811&logo=pypi&logoColor=white" alt="PyPI"></a> <a href="https://eddmpython.github.io/dartlab/"><img src="https://img.shields.io/badge/Docs-GitHub_Pages-38bdf8?style=for-the-badge&labelColor=050811&logo=github-pages&logoColor=white" alt="Docs"></a> <a href="https://buymeacoffee.com/eddmpython"><img src="https://img.shields.io/badge/Sponsor-Buy_Me_A_Coffee-ffdd00?style=for-the-badge&labelColor=050811&logo=buy-me-a-coffee&logoColor=white" alt="Sponsor"></a> </p> </div> ## What is this? <img align="right" src="https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/assets/avatar-study.png" width="120"> Pre-collected [Parquet](https://parquet.apache.org/) files from [DartLab](https://github.com/eddmpython/dartlab) — a Python library that turns DART (Korea) and EDGAR (US) disclosure filings into one structured company map. This dataset is the **data layer** behind DartLab. When you run `dartlab.Company("005930")`, the library automatically downloads the relevant parquet from this repo. ## Dataset Structure ``` dart/ ├── docs/ 2,547 companies ~8 GB disclosure text (sections, tables, markdown) ├── finance/ 2,744 companies ~586 MB financial statements (BS, IS, CF, XBRL) └── report/ 2,711 companies ~319 MB structured disclosure APIs (28 types) ``` Each file is one company: `{stockCode}.parquet` ### docs — Disclosure Text Full-text sections from annual/quarterly reports, parsed into structured blocks. | Column | Description | |--------|------------| | `rcept_no` | DART filing ID | | `rcept_date` | Filing date | | `stock_code` | Stock code | | `corp_name` | Company name | | `report_type` | Annual/quarterly report type | | `section_title` | Original section title | | `section_order` | Section ordering | | `content` | Section text (markdown) | | `blockType` | `text` / `table` / `heading` | | `year` | Filing year | ### finance — Financial Statements XBRL-based financial data from DART OpenAPI (`fnlttSinglAcntAll`). | Column | Description | |--------|------------| | `bsns_year` | Business year | | `reprt_code` | Report quarter code | | `stock_code` | Stock code | | `corp_name` | Company name | | `fs_div` | `CFS` (consolidated) / `OFS` (separate) | | `sj_div` | Statement type (BS/IS/CF/SCE) | | `account_id` | XBRL account ID | | `account_nm` | Account name (Korean) | | `thstrm_amount` | Current period amount | | `frmtrm_amount` | Prior period amount | | `bfefrmtrm_amount` | Two periods prior amount | ### report — Structured Disclosure APIs 28 DART API categories covering governance, compensation, shareholding, and more. | Column | Description | |--------|------------| | `apiType` | API category (e.g., `dividend`, `employee`, `executive`) | | `year` | Year | | `quarter` | Quarter | | `stockCode` | Stock code | | `corpCode` | DART corp code | | *(varies)* | Category-specific columns | **28 API types:** dividend, employee, executive, majorHolder, treasuryStock, capitalChange, auditOpinion, stockTotal, outsideDirector, corporateBond, and more. ## Usage <img align="right" src="https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/assets/avatar-analyze.png" width="120"> ### With DartLab (recommended) ```bash pip install dartlab ``` ```python import dartlab c = dartlab.Company("005930") # Samsung Electronics c.sections # full company map (topic x period) c.BS # balance sheet c.ratios # financial ratios c.show("businessOverview") # narrative text # US companies work the same way us = dartlab.Company("AAPL") us.BS us.ratios ``` DartLab auto-downloads from this dataset. No manual download needed. ### Direct download ```python import polars as pl # Single file url = "https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/dart/finance/005930.parquet" df = pl.read_parquet(url) ``` ```bash # wget wget https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/dart/finance/005930.parquet ``` <img align="right" src="https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/assets/avatar-discover.png" width="120"> ## Data Source - **DART** (Korea): [dart.fss.or.kr](https://dart.fss.or.kr) — Korea's electronic disclosure system operated by the Financial Supervisory Service - **EDGAR** (US): [sec.gov/edgar](https://www.sec.gov/edgar) — SEC's Electronic Data Gathering, Analysis, and Retrieval system All data is sourced from public government disclosure systems. Financial figures are preserved as-is from the original filings — no rounding, no estimation, no interpolation. ## Update Schedule This dataset is updated automatically via GitHub Actions (daily). Recent filings (last 7 days) are checked and collected incrementally. ## License MIT — same as [DartLab](https://github.com/eddmpython/dartlab). ## Support If DartLab is useful for your work, consider supporting the project: [](https://buymeacoffee.com/eddmpython) - [GitHub Issues](https://github.com/eddmpython/dartlab/issues) — bug reports, feature requests - [Blog](https://eddmpython.github.io/dartlab/blog/) — 120+ articles on Korean disclosure analysis
license: MIT协议 task_categories: - 表格问答 - 文本分类 language: - 韩语 - 英语 tags: - 金融 - 信息披露 - DART - EDGAR - 美国证券交易委员会(SEC) - 可扩展商业报告语言(XBRL) - 韩国 - 财务报表 - 企业申报文件 - 电子披露 - 财务报表 - 业务报告 - 韩国 pretty_name: DartLab 电子披露数据集 size_categories: - 1000<n<10000 --- <div align="center"> <br> <img alt="DartLab" src="https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/assets/logo.png" width="160"> <h3>DartLab 数据集</h3> <p><b>源自DART与EDGAR披露申报文件的结构化企业数据</b></p> <p> <a href="https://github.com/eddmpython/dartlab"><img src="https://img.shields.io/badge/GitHub-dartlab-ea4647?style=for-the-badge&labelColor=050811&logo=github&logoColor=white" alt="GitHub"></a> <a href="https://pypi.org/project/dartlab/"><img src="https://img.shields.io/pypi/v/dartlab?style=for-the-badge&color=ea4647&labelColor=050811&logo=pypi&logoColor=white" alt="PyPI"></a> <a href="https://eddmpython.github.io/dartlab/"><img src="https://img.shields.io/badge/Docs-GitHub_Pages-38bdf8?style=for-the-badge&labelColor=050811&logo=github-pages&logoColor=white" alt="文档"></a> <a href="https://buymeacoffee.com/eddmpython"><img src="https://img.shields.io/badge/Sponsor-Buy_Me_A_Coffee-ffdd00?style=for-the-badge&labelColor=050811&logo=buy-me-a-coffee&logoColor=white" alt="赞助"></a> </p> </div> ## 这是什么? <img align="right" src="https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/assets/avatar-study.png" width="120"> 本数据集为DartLab预先收集的Parquet文件——DartLab是一款Python库,可将韩国DART与美国EDGAR的披露申报文件转换为结构化企业映射数据。 本数据集是DartLab的**核心数据层**。当执行`dartlab.Company("005930")`时,该库将自动从本仓库下载对应的Parquet文件。 ## 数据集结构 dart/ ├── docs/ 2547家企业 约8 GB 披露文本(含章节、表格与Markdown格式内容) ├── finance/ 2744家企业 约586 MB 财务报表(含资产负债表BS、利润表IS、现金流量表CF及XBRL数据) └── report/ 2711家企业 约319 MB 结构化披露API(共28类) 每个文件对应一家企业,命名格式为`{股票代码}.parquet`。 ### docs — 披露文本 来自年度/季度报告的全文字段,已解析为结构化数据块。 | 列名 | 说明 | |--------|------------| | `rcept_no` | DART 申报编号 | | `rcept_date` | 申报日期 | | `stock_code` | 股票代码 | | `corp_name` | 企业名称 | | `report_type` | 年度/季度报告类型 | | `section_title` | 原始章节标题 | | `section_order` | 章节排序编号 | | `content` | 章节文本(Markdown格式) | | `blockType` | 数据块类型:`text`(文本)/ `table`(表格)/ `heading`(标题) | | `year` | 申报年份 | ### finance — 财务报表 源自DART开放API(`fnlttSinglAcntAll`)的基于XBRL的财务数据。 | 列名 | 说明 | |--------|------------| | `bsns_year` | 业务年度 | | `reprt_code` | 报告季度代码 | | `stock_code` | 股票代码 | | `corp_name` | 企业名称 | | `fs_div` | 报表类型:`CFS`(合并报表)/ `OFS`(个别报表) | | `sj_div` | 报表类别(BS/IS/CF/SCE) | | `account_id` | XBRL 账户ID | | `account_nm` | 账户名称(韩语) | | `thstrm_amount` | 当期金额 | | `frmtrm_amount` | 上期金额 | | `bfefrmtrm_amount` | 前两期金额 | ### report — 结构化披露API 包含28类DART API,覆盖公司治理、薪酬、持股情况等领域。 | 列名 | 说明 | |--------|------------| | `apiType` | API 类别(例如`dividend`(分红)、`employee`(员工)、`executive`(高管)等) | | `year` | 年度 | | `quarter` | 季度 | | `stockCode` | 股票代码 | | `corpCode` | DART 企业代码 | | `*(varies)*` | 类别专属列 | **28类API包括**:分红(dividend)、员工(employee)、高管(executive)、主要股东(majorHolder)、库存股(treasuryStock)、资本变动(capitalChange)、审计意见(auditOpinion)、总股本(stockTotal)、独立董事(outsideDirector)、公司债券(corporateBond)等。 ## 使用方法 <img align="right" src="https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/assets/avatar-analyze.png" width="120"> ### 使用DartLab(推荐方式) bash pip install dartlab python import dartlab c = dartlab.Company("005930") # 三星电子 c.sections # 完整企业映射数据(按主题×周期分类) c.BS # 资产负债表 c.ratios # 财务比率 c.show("businessOverview") # 业务概述叙事文本 # 美国企业的使用方式相同 us = dartlab.Company("AAPL") us.BS us.ratios DartLab将自动从本数据集下载数据,无需手动操作。 ### 直接下载 python import polars as pl # 下载单个文件 url = "https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/dart/finance/005930.parquet" df = pl.read_parquet(url) bash # 使用wget下载 wget https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/dart/finance/005930.parquet <img align="right" src="https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/assets/avatar-discover.png" width="120"> ## 数据来源 - **DART(韩国)**:[dart.fss.or.kr](https://dart.fss.or.kr) — 韩国金融监督院运营的电子披露系统 - **EDGAR(美国)**:[sec.gov/edgar](https://www.sec.gov/edgar) — 美国证券交易委员会(SEC)的电子数据收集、分析与检索系统 所有数据均源自公共政府披露系统,财务数据完全保留原始申报文件的内容,未进行四舍五入、估算或插值处理。 ## 更新计划 本数据集通过GitHub Actions每日自动更新,将对近7天的申报文件进行增量检查与收集。 ## 许可证 MIT协议,与[DartLab](https://github.com/eddmpython/dartlab)一致。 ## 支持与赞助 如果DartLab对你的研究或工作有所帮助,欢迎赞助该项目: [](https://buymeacoffee.com/eddmpython) - [GitHub Issues](https://github.com/eddmpython/dartlab/issues) — 提交bug报告与功能需求 - [博客](https://eddmpython.github.io/dartlab/blog/) — 120+篇关于韩国披露数据分析的文章




