# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

skirt = {'size': 'm', 'price': 139.90, 'color': ['black', 'blue', 'red'], 'date': '2020-01-01'}

skirt

skirt['color'][1]

# # Agrupamento

import pandas as pd

 data = pd.read_csv('data/kc_house_data.csv')

data.head()

df_grouped = data[['id','bedrooms']].groupby('bedrooms')

for bedrooms, frame in df_grouped:
    print('numero de quartos: {}'.format( bedrooms))
    print(frame.head(), end='\n\n')





StarcoderdataJupyterScriptsDedupFiltered