Datasets:
Version 2.0.0 with 2024 data
Browse files
README.md
CHANGED
|
@@ -22,11 +22,11 @@ The Russian Financial Statements Database (RFSD) is an open, harmonized collecti
|
|
| 22 |
|
| 23 |
- ποΈ Sourced from two official data providers: the [Rosstat](https://rosstat.gov.ru/opendata/7708234640-7708234640bdboo2018) and the [Federal Tax Service](https://bo.nalog.ru).
|
| 24 |
|
| 25 |
-
- π
Covers 2011-
|
| 26 |
|
| 27 |
- ποΈ Restores as much data as possible through non-invasive data imputation, statement articulation, and harmonization.
|
| 28 |
|
| 29 |
-
The RFSD is hosted on π€ [Hugging Face](https://huggingface.co/datasets/irlspbru/RFSD) and [Zenodo](https://doi.org/10.5281/zenodo.14622208) and is stored in a structured, column-oriented, compressed binary format Apache Parquet with yearly partitioning scheme, enabling end
|
| 30 |
|
| 31 |
The accompanying paper provides internal and external validation of the data: [https://doi.org/10.1038/s41597-025-05150-1](https://doi.org/10.1038/s41597-025-05150-1).
|
| 32 |
|
|
@@ -34,7 +34,7 @@ Here we present the instructions for importing the data in R or Python environme
|
|
| 34 |
|
| 35 |
[](https://doi.org/10.5281/zenodo.14622208) [](https://www.nature.com/articles/s41597-025-05150-1) [](https://arxiv.org/abs/2501.05841) [](https://creativecommons.org/licenses/by-nc-sa/4.0/)  
|
| 36 |
|
| 37 |
-
## Importing
|
| 38 |
|
| 39 |
You have two options to ingest the data: download the `.parquet` files manually from Hugging Face or Zenodo or rely on π€ [Hugging Face Datasets](https://huggingface.co/docs/datasets/en/index) library.
|
| 40 |
|
|
@@ -47,11 +47,11 @@ It is as easy as:
|
|
| 47 |
from datasets import load_dataset
|
| 48 |
import polars as pl
|
| 49 |
|
| 50 |
-
# This line will download 6.
|
| 51 |
RFSD = load_dataset('irlspbru/RFSD')
|
| 52 |
|
| 53 |
-
# Alternatively, this will download ~
|
| 54 |
-
# to a Polars DataFrame (requires about
|
| 55 |
RFSD_2023 = pl.read_parquet('hf://datasets/irlspbru/RFSD/RFSD/year=2023/*.parquet')
|
| 56 |
```
|
| 57 |
|
|
@@ -63,7 +63,7 @@ renaming_df = pl.read_csv('https://raw.githubusercontent.com/irlcode/RFSD/main/a
|
|
| 63 |
RFSD = RFSD.rename({item[0]: item[1] for item in zip(renaming_df['original'], renaming_df['descriptive'])})
|
| 64 |
```
|
| 65 |
|
| 66 |
-
Please note that the data is not shuffled within year, meaning that streaming first __n__ rows will not yield a random sample.
|
| 67 |
|
| 68 |
### R
|
| 69 |
|
|
@@ -116,7 +116,7 @@ To the best of our knowledge, the RFSD is the only open data set with up-to-date
|
|
| 116 |
|
| 117 |
#### What is the data period?
|
| 118 |
|
| 119 |
-
We provide financials for Russian firms in 2011-
|
| 120 |
|
| 121 |
#### Why are there no data for firm X in year Y?
|
| 122 |
|
|
@@ -130,11 +130,11 @@ Although the RFSD strives to be an all-encompassing database of financial statem
|
|
| 130 |
|
| 131 |
#### Why is the geolocation of firm X incorrect?
|
| 132 |
|
| 133 |
-
We use Nominatim to geocode structured addresses of incorporation of legal entities from the EGRUL. There may be errors in the original addresses that prevent us from geocoding firms to a particular house. Gazprom, for instance, is geocoded up to a house level in 2014 and 2021-
|
| 134 |
|
| 135 |
#### Why is the data for firm X different from https://bo.nalog.ru/?
|
| 136 |
|
| 137 |
-
Many firms submit correcting statements after the initial filing. While we have downloaded the data way past the April,
|
| 138 |
|
| 139 |
#### Why is the data for firm X unrealistic?
|
| 140 |
|
|
@@ -150,14 +150,34 @@ The data is provided in Apache Parquet format. This is a structured, column-orie
|
|
| 150 |
|
| 151 |
## Version and Update Policy
|
| 152 |
|
| 153 |
-
Version (SemVer): `
|
| 154 |
|
| 155 |
-
We intend to update the RFSD annualy as the data becomes available, in other words when most of the firms have their statements filed with the Federal Tax Service. The official deadline for filing of previous year statements is April, 1. However, every year a portion of firms either fails to meet the deadline or submits corrections afterwards. Filing continues up to the very end of the year but after the end of April this stream quickly thins out. Nevertheless, there is obviously a trade-off between minimization of data completeness and version availability. We find it a reasonable compromise to query new data in early June, since on average by the end of May 96.7% statements are already filed, including 86.4% of all the correcting filings. We plan to
|
| 156 |
|
| 157 |
## Changelog
|
| 158 |
|
| 159 |
All notable changes to this project will be documented below. The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
| 160 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
## [1.0.1] - 2025-05-13
|
| 162 |
|
| 163 |
### Fixed
|
|
@@ -166,7 +186,7 @@ All notable changes to this project will be documented below. The format is base
|
|
| 166 |
|
| 167 |
- Fixed a bug in adjustment of line 1300 (total capital and reserves) and 2500 (result of the period).
|
| 168 |
|
| 169 |
-
The updated lines 2400 are quite different from the original values. The value of line 2400 changed in 6
|
| 170 |
|
| 171 |
## Licence
|
| 172 |
<a rel="license" href="https://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />
|
|
|
|
| 22 |
|
| 23 |
- ποΈ Sourced from two official data providers: the [Rosstat](https://rosstat.gov.ru/opendata/7708234640-7708234640bdboo2018) and the [Federal Tax Service](https://bo.nalog.ru).
|
| 24 |
|
| 25 |
+
- π
Covers 2011-2024, will be continuously updated.
|
| 26 |
|
| 27 |
- ποΈ Restores as much data as possible through non-invasive data imputation, statement articulation, and harmonization.
|
| 28 |
|
| 29 |
+
The RFSD is hosted on π€ [Hugging Face](https://huggingface.co/datasets/irlspbru/RFSD) and [Zenodo](https://doi.org/10.5281/zenodo.14622208) and is stored in a structured, column-oriented, compressed binary format Apache Parquet with yearly partitioning scheme, enabling end users to query only variables of interest at scale.
|
| 30 |
|
| 31 |
The accompanying paper provides internal and external validation of the data: [https://doi.org/10.1038/s41597-025-05150-1](https://doi.org/10.1038/s41597-025-05150-1).
|
| 32 |
|
|
|
|
| 34 |
|
| 35 |
[](https://doi.org/10.5281/zenodo.14622208) [](https://www.nature.com/articles/s41597-025-05150-1) [](https://arxiv.org/abs/2501.05841) [](https://creativecommons.org/licenses/by-nc-sa/4.0/)  
|
| 36 |
|
| 37 |
+
## Importing the Data
|
| 38 |
|
| 39 |
You have two options to ingest the data: download the `.parquet` files manually from Hugging Face or Zenodo or rely on π€ [Hugging Face Datasets](https://huggingface.co/docs/datasets/en/index) library.
|
| 40 |
|
|
|
|
| 47 |
from datasets import load_dataset
|
| 48 |
import polars as pl
|
| 49 |
|
| 50 |
+
# This line will download 6.6 GB+ of all RFSD data and store it in a π€ cache folder
|
| 51 |
RFSD = load_dataset('irlspbru/RFSD')
|
| 52 |
|
| 53 |
+
# Alternatively, this will download ~540 MB with all financial statements for 2023
|
| 54 |
+
# to a Polars DataFrame (requires about 8 GB of RAM)
|
| 55 |
RFSD_2023 = pl.read_parquet('hf://datasets/irlspbru/RFSD/RFSD/year=2023/*.parquet')
|
| 56 |
```
|
| 57 |
|
|
|
|
| 63 |
RFSD = RFSD.rename({item[0]: item[1] for item in zip(renaming_df['original'], renaming_df['descriptive'])})
|
| 64 |
```
|
| 65 |
|
| 66 |
+
Please note that the data is not shuffled within year, meaning that streaming the first __n__ rows will not yield a random sample.
|
| 67 |
|
| 68 |
### R
|
| 69 |
|
|
|
|
| 116 |
|
| 117 |
#### What is the data period?
|
| 118 |
|
| 119 |
+
We provide financials for Russian firms in 2011-2024. We will add the data for 2025 by July, 2026 (see Version and Update Policy below).
|
| 120 |
|
| 121 |
#### Why are there no data for firm X in year Y?
|
| 122 |
|
|
|
|
| 130 |
|
| 131 |
#### Why is the geolocation of firm X incorrect?
|
| 132 |
|
| 133 |
+
We use Nominatim to geocode structured addresses of incorporation of legal entities from the EGRUL. There may be errors in the original addresses that prevent us from geocoding firms to a particular house. Gazprom, for instance, is geocoded up to a house level in 2014 and 2021-2024, but only at street level for 2015-2020 due to improper handling of the house number by Nominatim. In that case we have fallen back to street-level geocoding. Additionally, streets in different districts of one city may share identical names. We have ignored those problems in our geocoding and [invite](https://github.com/irlcode/rfsd/issues/1) your submissions. Finally, address of incorporation may not correspond with plant locations. For instance, Rosneft [has](https://websbor.rosstat.gov.ru/online/info) 62 field offices in addition to the central office in Moscow. We ignore the location of such offices in our geocoding, but subsidiaries set up as separate legal entities are still geocoded.
|
| 134 |
|
| 135 |
#### Why is the data for firm X different from https://bo.nalog.ru/?
|
| 136 |
|
| 137 |
+
Many firms submit correcting statements after the initial filing. While we have downloaded the data way past the April 1, 2025 deadline for 2024 filings, firms may have kept submitting the correcting statements. We will capture them in the future releases.
|
| 138 |
|
| 139 |
#### Why is the data for firm X unrealistic?
|
| 140 |
|
|
|
|
| 150 |
|
| 151 |
## Version and Update Policy
|
| 152 |
|
| 153 |
+
Version (SemVer): `2.0.0`.
|
| 154 |
|
| 155 |
+
We intend to update the RFSD annualy as the data becomes available, in other words when most of the firms have their statements filed with the Federal Tax Service. The official deadline for filing of previous year statements is April, 1. However, every year a portion of firms either fails to meet the deadline or submits corrections afterwards. Filing continues up to the very end of the year but after the end of April this stream quickly thins out. Nevertheless, there is obviously a trade-off between minimization of data completeness and version availability. We find it a reasonable compromise to query new data in early June, since on average by the end of May 96.7% statements are already filed, including 86.4% of all the correcting filings. We plan to update RFSD annualy in late July β early August.
|
| 156 |
|
| 157 |
## Changelog
|
| 158 |
|
| 159 |
All notable changes to this project will be documented below. The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
| 160 |
|
| 161 |
+
## [2.0.0] - 2025-08-19
|
| 162 |
+
|
| 163 |
+
### Added
|
| 164 |
+
- Financial statements for 2024 have been added, totaling approximately 2.25 million observations.
|
| 165 |
+
- More than 315,000 new statements (as well as 55,000 new non-statements by eligible firms) for 2011β2023 have also been included:
|
| 166 |
+
- More than 24,000 statements for 2023 were imputed using the 2024 filings.
|
| 167 |
+
- Approximately 3,400 statements were either added to GIR BO retrospectively or missing in v1.0.1 due to the absence of the corresponding organizations in the EGRUL. When we updated the EGRUL, we were able to reconstruct those filings.
|
| 168 |
+
- The remaining 286,000+ statements are the ones that we had previously imputed from firms' future statements but erroneously dropped due to a bug (see Fixed).
|
| 169 |
+
|
| 170 |
+
### Fixed
|
| 171 |
+
- Resolved a bug in the final filtering of the panel. We removed all non-eligible non-filers, as intended, but inadvertently excluded observations of non-eligible non-filers whose statements we were able to reconstruct from the following-year filings. Fixing this filter returned about 286,000 statements to the panel.
|
| 172 |
+
|
| 173 |
+
### Changed
|
| 174 |
+
- The `region_taxcode` now reflects a firm's region of incorporation. Earlier it was simply derived from the first two digits of the firm tax identifier (`inn`) and did not account for reincorporations. The format has been extended from 2 to 4 digits, allowing for differentiation between Arkhangelskaya oblast (`"2900"`) and Nenetskiy AO (`"2983"`), which the former includes.
|
| 175 |
+
- We have revised the statements of all firms previously marked as `outlier` and set the flag to 0 where anomalous revenue has been corrected in the GIR BO database retrospectively.
|
| 176 |
+
- The outlier detection procedure has been updated. Before, we manually reviewed top-20 firms in terms of revenue or total assets within each 2-digit industry (excluding financial firms). Now, we conduct the outlierness review of 2024 filings at OKVED section level, manually examining the top-30 firms by revenue within each OKVED section.
|
| 177 |
+
- The `filed` flag for observed but all-zero statements (all fields, even Equity, are 0) statements is now set to 0 as it is clearly erroneous.
|
| 178 |
+
- The `exemption_criteria` for eligible organizations is now set to `"none"` (previously `NA`).
|
| 179 |
+
- Enhanced geocoding quality (see [this issue](http://github.com/irlcode/RFSD/issues/1)): improvements in address pre-processing procedure have enabled us to upgrade geocoding quality from the city level to the street level for firms accounting for ~8% of revenue from 2022 onwards:
|
| 180 |
+
|
| 181 |
## [1.0.1] - 2025-05-13
|
| 182 |
|
| 183 |
### Fixed
|
|
|
|
| 186 |
|
| 187 |
- Fixed a bug in adjustment of line 1300 (total capital and reserves) and 2500 (result of the period).
|
| 188 |
|
| 189 |
+
The updated lines 2400 are quite different from the original values. The value of line 2400 changed in 6β11% of observations in 2011β2018 and in about 25% observations in 2019β2023, the summed difference in the original and new values ranges from 5% to 110% depending on year. Fix for signs inconsistency implies revising scripts for all calculations where negative-only, those ()-ed in statement forms, variables were used.
|
| 190 |
|
| 191 |
## Licence
|
| 192 |
<a rel="license" href="https://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />
|