Skip to content

Commit 63fe758

Browse files
committed
v0.8.16
1 parent 2e139cb commit 63fe758

7 files changed

Lines changed: 78 additions & 78 deletions

File tree

‎CHANGES.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
v0.8.16a1, 2025-??-??
2-
* `data1.csv`〜`data5.csv`を書籍「経済学のためのPython入門」用と明記
1+
v0.8.16, 2025-12-05
2+
* `data1.csv`〜`data5.csv`を書籍『経済学のためのPython入門』用と明記
3+
* Penn World Table 11.0にアップデート
34

45
v0.8.15, 2025-06-01
56
* `README.md`にJupyterLiteで使用する際の注意点を追加

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
* Big Macインデックス
1919
* IMF World Economic Outlook 2025
2020
* Maddison Project Database 2023
21-
* Penn World Tables 10.01
21+
* Penn World Tables 11.0
2222
* 日本の四半期データ(GDPなど)
2323
* 日本の年次データ(GDPなど)
2424
* 日本の四半期データ(マネーストックなど)
2525
* 177ヵ国のマネーストックなど
2626
* 円/ドル為替レートなど
2727
* 景気循環日付と拡張・後退期間
2828
* 政府負債に関する長期時系列データ
29-
* 書籍「経済学のためのPython入門」用のデータ
29+
* 書籍『経済学のためのPython入門』用のデータ
3030

3131
# 使い方
3232
```

‎py4macro/__init__.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
__all__ = ['data','trend','show','xvalues','recessions','fukyo', 'see']
88

99
__author__ = 'Tetsu Haruyama'
10-
__version__ = '0.8.15'
10+
__version__ = '0.8.16'
1111
__copyright__ = 'Copyright (c) 2025 Tetsu Haruyama'
1212

1313
__doc__ = """
@@ -20,7 +20,7 @@
2020
* 後退期間にグレーの塗りつぶしを追加する`fukyo()`関数
2121
* 後退期間にグレーの塗りつぶしを追加する`recessions()`デコレーター
2222
* データ・セット
23-
* Penn World Tables 10.1
23+
* Penn World Tables 11.0
2424
* IMF World Economic Outlook 2024
2525
* Maddison Project Database 2023
2626
* 日本の四半期データ(GDPなど)
@@ -31,4 +31,4 @@
3131
* 景気循環日付と拡張・後退期間
3232
* Big Mac インデックス
3333
* 政府負債に関する長期時系列データ
34-
* 「経済学のためのPython入門」用のデータ"""
34+
* 『経済学のためのPython入門』用のデータ"""

‎py4macro/data/pwt_data.csv.bz2‎

83 KB
Binary file not shown.

‎py4macro/data/pwt_definitions.csv‎

Lines changed: 67 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,67 @@
1-
Variable name,Variable definition
2-
Identifier variables,
3-
countrycode,3-letter ISO country code
4-
country,Country name
5-
currency_unit,Currency unit
6-
year,Year
7-
,
8-
"Real GDP, employment and population levels",
9-
rgdpe,Expenditure-side real GDP at chained PPPs (in mil. 2017US$)
10-
rgdpo,Output-side real GDP at chained PPPs (in mil. 2017US$)
11-
pop,Population (in millions)
12-
emp,Number of persons engaged (in millions)
13-
avh,Average annual hours worked by persons engaged
14-
hc,"Human capital index, based on years of schooling and returns to education; see Human capital in PWT9."
15-
,
16-
"Current price GDP, capital and TFP",
17-
ccon,"Real consumption of households and government, at current PPPs (in mil. 2017US$)"
18-
cda,"Real domestic absorption, (real consumption plus investment), at current PPPs (in mil. 2017US$)"
19-
cgdpe,Expenditure-side real GDP at current PPPs (in mil. 2017US$)
20-
cgdpo,Output-side real GDP at current PPPs (in mil. 2017US$)
21-
cn,Capital stock at current PPPs (in mil. 2017US$)
22-
ck,Capital services levels at current PPPs (USA=1)
23-
ctfp,TFP level at current PPPs (USA=1)
24-
cwtfp,Welfare-relevant TFP levels at current PPPs (USA=1)
25-
,
26-
National accounts-based variables,
27-
rgdpna,Real GDP at constant 2017 national prices (in mil. 2017US$)
28-
rconna,Real consumption at constant 2017 national prices (in mil. 2017US$)
29-
rdana,Real domestic absorption at constant 2017 national prices (in mil. 2017US$)
30-
rnna,Capital stock at constant 2017 national prices (in mil. 2017US$)
31-
rkna,Capital services at constant 2017 national prices (2017=1)
32-
rtfpna,TFP at constant national prices (2017=1)
33-
rwtfpna,Welfare-relevant TFP at constant national prices (2017=1)
34-
labsh,Share of labour compensation in GDP at current national prices
35-
irr,Real internal rate of return
36-
delta,Average depreciation rate of the capital stock
37-
,
38-
Exchange rates and GDP price levels,
39-
xr,"Exchange rate, national currency/USD (market+estimated)"
40-
pl_con,"Price level of CCON (PPP/XR), price level of USA GDPo in 2017=1"
41-
pl_da,"Price level of CDA (PPP/XR), price level of USA GDPo in 2017=1"
42-
pl_gdpo,"Price level of CGDPo (PPP/XR), price level of USA GDPo in 2017=1"
43-
,
44-
Data information variables,
45-
i_cig,"0/1/2/3/4: relative price data for consumption, investment and government is extrapolated (0), benchmark (1), interpolated (2), ICP PPP timeseries: benchmark or interpolated (3) or ICP PPP timeseries: extrapolated (4)"
46-
i_xm,"0/1/2: relative price data for exports and imports is extrapolated (0), benchmark (1) or interpolated (2)"
47-
i_xr,0/1: the exchange rate is market-based (0) or estimated (1)
48-
i_outlier,0/1: the observation on pl_gdpe or pl_gdpo is not an outlier (0) or an outlier (1)
49-
i_irr,"0/1/2/3: the observation for irr is not an outlier (0), may be biased due to a low capital share (1), hit the lower bound of 1 percent (2), or is an outlier (3)"
50-
cor_exp,Correlation between expenditure shares of the country and the US (benchmark observations only)
51-
statcap,"Statistical capacity indicator (source: World Bank, developing countries only)"
52-
,
53-
Shares in CGDPo,
54-
csh_c,Share of household consumption at current PPPs
55-
csh_i,Share of gross capital formation at current PPPs
56-
csh_g,Share of government consumption at current PPPs
57-
csh_x,Share of merchandise exports at current PPPs
58-
csh_m,Share of merchandise imports at current PPPs
59-
csh_r,Share of residual trade and GDP statistical discrepancy at current PPPs
60-
,
61-
"Price levels, expenditure categories and capital",
62-
pl_c,"Price level of household consumption, price level of USA GDPo in 2017=1"
63-
pl_i,"Price level of capital formation, price level of USA GDPo in 2017=1"
64-
pl_g,"Price level of government consumption, price level of USA GDPo in 2017=1"
65-
pl_x,"Price level of exports, price level of USA GDPo in 2017=1"
66-
pl_m,"Price level of imports, price level of USA GDPo in 2017=1"
67-
pl_n,"Price level of the capital stock, price level of USA in 2017=1"
68-
pl_k,"Price level of the capital services, price level of USA=1"
1+
Variable name,Variable definition,,
2+
Identifier variables,,,
3+
countrycode,3-letter ISO country code,,
4+
country,Country name,,
5+
currency_unit,Currency unit,,
6+
year,Year,,
7+
,,,
8+
"Real GDP, employment and population levels",,,
9+
rgdpe,Expenditure-side real GDP at chained PPPs (in mil. 2021US$),,
10+
rgdpo,Output-side real GDP at chained PPPs (in mil. 2021US$),,
11+
pop,Population (in millions),,
12+
emp,Number of persons engaged (in millions),,
13+
avh,Average annual hours worked by persons engaged,,
14+
hc,"Human capital index, based on years of schooling and returns to education; see Human capital in PWT9.",,
15+
,,,
16+
"Current price GDP, capital and TFP",,,
17+
ccon,"Real consumption of households and government, at current PPPs (in mil. 2021US$)",,
18+
cda,"Real domestic absorption, (real consumption plus investment), at current PPPs (in mil. 2021US$)",,
19+
cgdpe,Expenditure-side real GDP at current PPPs (in mil. 2021US$),,
20+
cgdpo,Output-side real GDP at current PPPs (in mil. 2021US$),,
21+
cn,Capital stock at current PPPs (in mil. 2021US$),,
22+
ck,Capital services levels at current PPPs (USA=1),,
23+
ctfp,TFP level at current PPPs (USA=1),,
24+
cwtfp,Welfare-relevant TFP levels at current PPPs (USA=1),,
25+
,,,
26+
National accounts-based variables,,,
27+
rgdpna,Real GDP at constant 2021 national prices (in mil. 2021US$),,
28+
rconna,Real consumption at constant 2021 national prices (in mil. 2021US$),,
29+
rdana,Real domestic absorption at constant 2021 national prices (in mil. 2021US$),,
30+
rnna,Capital stock at constant 2021 national prices (in mil. 2021US$),,
31+
rkna,Capital services at constant 2021 national prices (2021=1),,
32+
rtfpna,TFP at constant national prices (2021=1),,
33+
rwtfpna,Welfare-relevant TFP at constant national prices (2021=1),,
34+
labsh,Share of labour compensation in GDP at current national prices,,
35+
irr,Real internal rate of return,,
36+
delta,Average depreciation rate of the capital stock,,
37+
,,,
38+
Exchange rates and GDP price levels,,,
39+
xr,"Exchange rate, national currency/USD (market+estimated)",,
40+
pl_con,"Price level of CCON (PPP/XR), price level of USA GDPo in 2021=1",,
41+
pl_da,"Price level of CDA (PPP/XR), price level of USA GDPo in 2021=1",,
42+
pl_gdpo,"Price level of CGDPo (PPP/XR), price level of USA GDPo in 2021=1",,
43+
,,,
44+
Data information variables,,,
45+
i_cig,"0/1/2/3/4: relative price data for consumption, investment and government is extrapolated (0), benchmark (1), interpolated (2), ICP PPP timeseries: benchmark or interpolated (3) or ICP PPP timeseries: extrapolated (4)",,
46+
i_xm,"0/1/2: relative price data for exports and imports is extrapolated (0), benchmark (1) or interpolated (2)",,
47+
i_xr,0/1: the exchange rate is market-based (0) or estimated (1),,
48+
i_outlier,0/1: the observation on pl_gdpe or pl_gdpo is not an outlier (0) or an outlier (1),,
49+
i_irr,"0/1/2/3: the observation for irr is not an outlier (0), may be biased due to a low capital share (1), hit the lower bound of 1 percent (2), or is an outlier (3)",,
50+
cor_exp,Correlation between expenditure shares of the country and the US (benchmark observations only),,
51+
,,,
52+
Shares in CGDPo,,,
53+
csh_c,Share of household consumption at current PPPs,,
54+
csh_i,Share of gross capital formation at current PPPs,,
55+
csh_g,Share of government consumption at current PPPs,,
56+
csh_x,Share of merchandise exports at current PPPs,,
57+
csh_m,Share of merchandise imports at current PPPs,,
58+
csh_r,Share of residual trade and GDP statistical discrepancy at current PPPs,,
59+
,,,
60+
"Price levels, expenditure categories and capital",,,
61+
pl_c,"Price level of household consumption, price level of USA GDPo in 2021=1",,
62+
pl_i,"Price level of capital formation, price level of USA GDPo in 2021=1",,
63+
pl_g,"Price level of government consumption, price level of USA GDPo in 2021=1",,
64+
pl_x,"Price level of exports, price level of USA GDPo in 2021=1",,
65+
pl_m,"Price level of imports, price level of USA GDPo in 2021=1",,
66+
pl_n,"Price level of the capital stock, price level of USA in 2021=1",,
67+
pl_k,"Price level of the capital services, price level of USA=1",,

‎py4macro/py4macro.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def data(dataset=None, description=0):
650650
| 'jpn-yr': 日本の年次データ(GDPなど)
651651
| 'mad': country data of Maddison Project Database 2023
652652
| 'mad-region': regional data of Maddison Project Database 2020
653-
| 'pwt': Penn World Table 10.01
653+
| 'pwt': Penn World Table 11.0
654654
| 'weo': IMF World Economic Outlook 2025
655655
| 'world-money': 177ヵ国のマネーストックなど
656656
| 'data1': 書籍「経済学のためのPython入門」用
@@ -723,7 +723,7 @@ def data(dataset=None, description=0):
723723
'jpn-yr': 日本の年次データ(GDPなど)
724724
'mad': country data of Maddison Project Database 2023
725725
'mad-region': regional data of Maddison Project Database 2023
726-
'pwt': Penn World Table 10.01
726+
'pwt': Penn World Table 11.0
727727
'weo': IMF World Economic Outlook 2025
728728
'world-money': 177ヵ国のマネーストックなど
729729
'data1': 書籍「経済学のためのPython入門」用

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name='py4macro',
12-
version='0.8.15',
12+
version='0.8.16',
1313
author='Tetsu Haruyama',
1414
author_email='haruyama@econ.kobe-u.ac.jp',
1515
packages=find_packages(exclude=("data_generation",)),

0 commit comments

Comments
 (0)