Skip to content

Commit

Permalink
fix(main.py): fix off-by-one error in the range of the for loop to co…
Browse files Browse the repository at this point in the history
…rrectly iterate over prefecture numbers
  • Loading branch information
ryo-ma committed Feb 18, 2024
1 parent 581ab9c commit 98ce7bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def delete_headers(df, line_number):
if not os.path.exists("./output_files"):
os.mkdir("./output_files")

for i in range(1, 47):
for i in range(1, 48):
print("PREFECTURE_NUMBER", i, PREFECTURES[i-1])
opendata_file = os.listdir(f"./data_files/shinryoujo_{i}")
dfs = tabula.read_pdf(f"./data_files/shinryoujo_{i}/{opendata_file[0]}", lattice=True, pages='all', pandas_options={'header': None})
Expand Down

0 comments on commit 98ce7bb

Please sign in to comment.