datasets.load()
Return an example dataset.
The columns have the types of the R package's dataset: text is pandas string, whole numbers Int64 and other numbers float64. A missing value is <NA>, or NaN in a float64 column.
Usage
python
from geneviewer import datasets
datasets.load(name)Arguments
| Argument | Type | Description |
|---|---|---|
name | str | The dataset, one of names. |
Value
pandas.DataFrame: The dataset; a new copy on each call.
Errors
| Error | When |
|---|---|
ValueError | When there is no dataset of that name. |
Examples
python
>>> from geneviewer import datasets
>>> datasets.load("ophA_clusters").head(3)
name start end class cluster
0 ophB1 2522.0 4276.0 Monooxygenase ophA
1 ophC 5286.0 4718.0 NTF2-like ophA
2 ophA 9536.0 10904.0 Methyltransferase ophA