tjbiel85 / pytiva

Python Tools for Investigating and Visualizing Activity (PyTIVA) within anesthetic records
GNU General Public License v3.0
0 stars 0 forks source link

Shortcut for grouping and quick counts? #12

Open tjbiel85 opened 1 year ago

tjbiel85 commented 1 year ago

Can use code like

study.ds_cases.groupby(pd.Grouper(key='anesthesia_start', axis=0, freq='M'))['case_id'].count()

To generate a little summary of anesthesia starts by month. Would it be nice to expose this functionality in a cleaner way directly on AnesthesiaStudy objects?