File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,23 @@ def summarize_response_metric(data: DatasetLoader) -> pd.DataFrame:
2929 pandas.DataFrame
3030 A `pandas.DataFrame` containing basic statistics for each
3131 dose response metric.
32+
33+ Example
34+ -------
35+
36+ The Example assumes that a dataset with the prefix 'beataml' has
37+ been downloaded previously. See also ``coderdata.download()``
38+
39+ >>> import coderdata as cd
40+ >>> beataml = cd.DataLoader('beataml')
41+ >>> summary_stats = summarize_response_metric(data=beataml)
42+ >>> summary_stats
43+ count mean std
44+ dose_response_metric
45+ aac 23378.0 3.028061e-01 1.821265e-01 ...
46+ auc 23378.0 6.971939e-01 1.821265e-01 ...
47+ dss 23378.0 3.218484e-01 5.733492e-01 ...
48+ ... ... ... ... ...
3249 """
3350 df_ret = (
3451 data .experiments # get experiments DF
@@ -75,6 +92,10 @@ def plot_response_metric(
7592 - kde : bool - adds a kernel density estimate plot into the
7693 histogram
7794
95+ Returns
96+ -------
97+ None
98+
7899 Example
79100 -------
80101 In a Jupyter Notebook environment the following snippet can be used
You can’t perform that action at this time.
0 commit comments