>>> import pandas as pd >>> from bd_arbres import arbres_gruixuts --ini-enunciat >>> df = pd.read_csv('arbres.csv', index_col='Tree_ID') >>> s = arbres_gruixuts(df, 25) >>> isinstance(s, pd.Series) # comprovació que la funció retorna una Series True >>> list(s.index) ['Up to 5', '> 20.1', '15.1-20', '10.1- 15', '5.1-10'] >>> list(s.values) [160, 211, 407, 3208, 4173] >>> s = arbres_gruixuts(df.iloc[:1000], 50) >>> list(s.index) ['5.1-10', '10.1- 15'] >>> list(s.values) [1, 4] --fi-enunciat >>> s = arbres_gruixuts(df.iloc[100:300], 30) >>> list(s.index) ['10.1- 15', '5.1-10'] >>> list(s.values) [2, 7] >>> s = arbres_gruixuts(df, 800) >>> list(s.index) ['10.1- 15', '5.1-10'] >>> list(s.values) [1, 1]