Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
212 B
2
Indexable
Never
children_pivot = data.pivot_table(index = ['children'], \
                                values = 'debt', aggfunc='count')

children_pivot['rate'] = children_pivot[1] / children_pivot[0] * 100
children_pivot