Load and return the specimen 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_specimen_phi
auth_file = 'path/to/config.txt'
connect_to_db(auth_file=auth_file)
df_timeline_specimen = load_data_timeline_specimen_phi()
df = df_timeline_specimen['data']
print(df.head())
|
Source code in msk_cdm/datasets/phi/impact/datasets_phi_impact.py
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144 | def load_data_timeline_specimen_phi() -> Bunch:
"""Load and return the specimen 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_specimen_phi
auth_file = 'path/to/config.txt'
connect_to_db(auth_file=auth_file)
df_timeline_specimen = load_data_timeline_specimen_phi()
df = df_timeline_specimen['data']
print(df.head())
```
"""
df = _loader._load_phi_impact_data_timeline_specimen()
data = Bunch(data=df)
return data
|