Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WooilJeong committed Jan 2, 2023
1 parent b60e324 commit 5bb29d0
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 50 deletions.
2 changes: 1 addition & 1 deletion PublicDataReader/config/info.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.0.7"
__version__ = "1.0.8"
__author__ = "정우일(Wooil Jeong)"
__contact__ = "[email protected]"
__github__ = "https://github.com/WooilJeong/PublicDataReader"
4 changes: 4 additions & 0 deletions PublicDataReader/kbland/kbland.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,10 @@ def get_pir(self, 메뉴코드, **kwargs):
tmp.columns = columns
df8 = pd.concat([df7.drop('dataList', axis=1), tmp], axis=1)
tot = pd.melt(df8, id_vars=['지역코드','지역명','주택분위','소득분위']).rename(columns={'variable':'날짜','value':'PIR'})
if n_date_str == 6:
tot['날짜'] = pd.to_datetime(tot['날짜'], format='%Y%m')
elif n_date_str == 8:
tot['날짜'] = pd.to_datetime(tot['날짜'], format='%Y%m%d')
# 코드 정보 부여
code_df = pd.DataFrame({
"구분": [self.PIR메뉴코드[메뉴코드]],
Expand Down
Loading

0 comments on commit 5bb29d0

Please sign in to comment.