1
0
forked from tdwojak/Python2018

zadanie domowe

This commit is contained in:
Magda Zganiacz 2018-06-22 15:59:02 +02:00
parent 7f64a03469
commit 56f654961c

View File

@ -13,7 +13,7 @@ def most_common_room_number(dane):
return mode(dane.Rooms) return mode(dane.Rooms)
def cheapest_flats(dane, n): def cheapest_flats(dane, n):
return dane.sort_values(by=["Expected"]).head(n) return dane.sort_values(by="Expected").head(n)
def find_borough(desc): def find_borough(desc):
dzielnice = ['Stare Miasto', dzielnice = ['Stare Miasto',
@ -67,6 +67,6 @@ def main():
print("Średnia cena mieszkania 3-pokojowego, to: {}" print("Średnia cena mieszkania 3-pokojowego, to: {}"
.format(mean_price(dane, 3))) .format(mean_price(dane, 3)))
if __name__ == "__main__": if __name__ == "__main__":
main() main()