Load and return the treatment timeline dataset (PHI).
Returns:
Name | Type |
Description |
data |
Bunch
|
Dictionary-like object, with the following attributes.
- data : pandas DataFrame
The data matrix.
|
Examples
| from msk_cdm.datasets import connect_to_db
from msk_cdm.datasets.impact import load_data_timeline_treatment_phi
auth_file = 'path/to/config.txt'
connect_to_db(auth_file=auth_file)
df_timeline_treatment = load_data_timeline_treatment_phi()
df = df_timeline_treatment['data']
print(df.head())
|
Source code in msk_cdm/datasets/phi/impact/datasets_phi_impact.py
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88 | def load_data_timeline_treatment_phi() -> Bunch:
"""Load and return the treatment timeline dataset (PHI).
Returns:
data: Dictionary-like object, with the following attributes.
- **data** : pandas DataFrame
The data matrix.
Examples
--------
```python
from msk_cdm.datasets import connect_to_db
from msk_cdm.datasets.impact import load_data_timeline_treatment_phi
auth_file = 'path/to/config.txt'
connect_to_db(auth_file=auth_file)
df_timeline_treatment = load_data_timeline_treatment_phi()
df = df_timeline_treatment['data']
print(df.head())
```
"""
df = _loader._load_phi_impact_data_timeline_treatment()
data = Bunch(data=df)
return data
|