Skip to content

Commit

Permalink
oops, remove head() call
Browse files Browse the repository at this point in the history
  • Loading branch information
vankesteren committed Nov 4, 2024
1 parent 4e2b7b1 commit 945873c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/query/query_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

def query_space(disease_query: str, year: int):
# iterate over each municipality
muni_df = pl.read_excel(BASE_PATH / LOCATION_EXCEL_FILE).head()
muni_df = pl.read_excel(BASE_PATH / LOCATION_EXCEL_FILE)
text_df = pl.scan_parquet(
BASE_PATH / COMBINED_DATA_FOLDER / f"combined_{year}_{year + 1}.parquet"
)
Expand Down Expand Up @@ -39,6 +39,4 @@ def query_space(disease_query: str, year: int):

res = query_space(r"choler.*|krim.?koorts", 1866)

res.sort(["Municipality", "yr", "mo"])

res.write_parquet(Path("processed_data", "cholera_1866.parquet"))
res.sort(["Municipality", "yr", "mo"]).write_parquet(Path("processed_data", "cholera_1866.parquet"))

0 comments on commit 945873c

Please sign in to comment.