Load and return the specimen-surgery 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_surgery_phi
auth_file = 'path/to/config.txt'
connect_to_db(auth_file=auth_file)
df_timeline_specimen_surgery = load_data_timeline_specimen_surgery_phi()
df = df_timeline_specimen_surgery['data']
print(df.head())
|
Source code in msk_cdm/datasets/phi/impact/datasets_phi_impact.py
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172 | def load_data_timeline_specimen_surgery_phi() -> Bunch:
"""Load and return the specimen-surgery 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_surgery_phi
auth_file = 'path/to/config.txt'
connect_to_db(auth_file=auth_file)
df_timeline_specimen_surgery = load_data_timeline_specimen_surgery_phi()
df = df_timeline_specimen_surgery['data']
print(df.head())
```
"""
df = _loader._load_phi_impact_data_timeline_specimen_surgery()
data = Bunch(data=df)
return data
|