Small fixes & fmt
This commit is contained in:
parent
6b12e21d50
commit
f32a552f46
23 changed files with 347 additions and 99 deletions
|
|
@ -264,8 +264,8 @@ def main():
|
|||
print()
|
||||
|
||||
# Summary stats
|
||||
prices = [l["price"] for l in listings if l["price"]]
|
||||
beds = [l["beds"] for l in listings if l["beds"]]
|
||||
prices = [item["price"] for item in listings if item["price"]]
|
||||
beds = [item["beds"] for item in listings if item["beds"]]
|
||||
if prices:
|
||||
print(f"Price range: £{min(prices):,} - £{max(prices):,}")
|
||||
print(f"Median: £{sorted(prices)[len(prices)//2]:,}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue