forked from tdwojak/Python2018
tasks
This commit is contained in:
parent
02c198ef0a
commit
91a014aa96
@ -2,13 +2,18 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
def wczytaj_dane():
|
||||
pass
|
||||
import pandas as pd
|
||||
dane = pd.read_csv("labs06/mieszkania.csv")
|
||||
dane.head()
|
||||
|
||||
|
||||
def most_common_room_number(dane):
|
||||
pass
|
||||
dane['Rooms'].value_counts().idxmax()
|
||||
|
||||
|
||||
|
||||
def cheapest_flats(dane, n):
|
||||
pass
|
||||
|
||||
|
||||
def find_borough(desc):
|
||||
dzielnice = ['Stare Miasto',
|
||||
|
@ -92,4 +92,4 @@ data['diff'] = data['Longitude'] + data['Latitude']
|
||||
równe NYPD.
|
||||
"""
|
||||
p = data[data['Agency'] == 'NYPD']
|
||||
p.City.value_counts()
|
||||
p.Descriptor.value_counts()
|
Loading…
Reference in New Issue
Block a user