This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
tutorials:python_quick_reference [2021/08/03 16:02] marcus.williams [Data interrogation] |
tutorials:python_quick_reference [2021/08/03 16:07] marcus.williams [Data interrogation] |
||
---|---|---|---|
Line 109: | Line 109: | ||
columns=['strucType'], | columns=['strucType'], | ||
margins=True, | margins=True, | ||
- | aggfunc=len) | + | aggfunc=np.sum) |
</code> | </code> | ||
[[http://pandas.pydata.org/pandas-docs/stable/generated/pandas.pivot_table.html#pandas.pivot_table|ref]] | | [[http://pandas.pydata.org/pandas-docs/stable/generated/pandas.pivot_table.html#pandas.pivot_table|ref]] | |