Skip to content

Commit

Permalink
Merge pull request #2677 from data-for-change/add-street-number-names
Browse files Browse the repository at this point in the history
add streets with number names as string
  • Loading branch information
atalyaalon authored Sep 2, 2024
2 parents b55f948 + 7f5d758 commit 640cc05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions anyway/parsers/cbs/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,9 +695,10 @@ def get_files(directory):
streets_map[key] = [
{
field_names.street_sign: x[field_names.street_sign],
field_names.street_name: x[field_names.street_name],
field_names.street_name: str(x[field_names.street_name]),
}
for _, x in settlement.iterrows() if isinstance(x[field_names.street_name], str)
for _, x in settlement.iterrows() if isinstance(x[field_names.street_name], str) \
or ((isinstance(x[field_names.street_name], int) or isinstance(x[field_names.street_name], float)) and x[field_names.street_name] > 0)
]

output_files_dict[name] = streets_map
Expand Down

0 comments on commit 640cc05

Please sign in to comment.