Skip to content

Commit

Permalink
v0.8.10
Browse files Browse the repository at this point in the history
  • Loading branch information
spring-haru committed Jul 6, 2024
1 parent 5544e7c commit 4fcf4fd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v0.8.10, 2024-07-6
* `weo`の変数の説明をアルファベット順に変更
* `debts`の変数の説明を更新

v0.8.9, 2024-07-5
* `mad-regions``mad-region`に変更
* `mad``mad-region`のデータを更新
Expand Down
2 changes: 1 addition & 1 deletion py4macro/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
__all__ = ['data','trend','show','xvalues','recessions','fukyo', 'see']

__author__ = 'Tetsu Haruyama'
__version__ = '0.8.9'
__version__ = '0.8.10'
__copyright__ = 'Copyright (c) 2024 Tetsu Haruyama'

__doc__ = """
Expand Down
7 changes: 5 additions & 2 deletions py4macro/py4macro.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@
| Surveys, pp.1-41."""

debts_definitions = """
| `countrycode`: ISO3国名コード
| `country`: 国名
| `year`: 年
| `revenue`: Government revenue, percent of GDP
| `expenditure`: Government expenditure, percent of GDP
| `interest_exp`: Government interest expense, percent of GDP
Expand Down Expand Up @@ -661,7 +664,7 @@ def data(dataset=None, description=0):
elif (dataset == 'weo') & (description == 1):
df = pd.read_csv(join(_get_path(__file__),
"data/weo_description.csv.bz2"),
compression="bz2").set_index("WEO Subject Code")
compression="bz2").set_index("WEO Subject Code").sort_index()

with pd.option_context('display.max_colwidth', None,
'display.max_rows', None):
Expand All @@ -670,7 +673,7 @@ def data(dataset=None, description=0):
elif (dataset == 'weo') & (description == 2):
df = pd.read_csv(join(_get_path(__file__),
"data/weo_description.csv.bz2"),
compression="bz2").set_index("WEO Subject Code")
compression="bz2").set_index("WEO Subject Code").sort_index()
return df

elif (dataset == 'weo') & (description not in [0, 1, 2]):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='py4macro',
version='0.8.9',
version='0.8.10',
author='Tetsu Haruyama',
author_email='haruyama@econ.kobe-u.ac.jp',
packages=find_packages(exclude=("data_generation",)),
Expand Down

0 comments on commit 4fcf4fd

Please sign in to comment.