Public Data
Public Datasets
PublicData is a read-only list/get interface for the public S3 datasets that ship with Workbench.
The PublicData class lets you discover and pull down curated public datasets (e.g. computational chemistry benchmarks) without any AWS setup of your own.
Workbench REPL
Experiment with the PublicData() class in the Workbench REPL.
PublicData: Read-only access to public S3 data (comp_chem datasets)
PublicData
PublicData: Read-only list/get interface for public S3 datasets
Common Usage
Source code in src/workbench/api/public_data.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 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 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 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 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | |
__init__()
PublicData Init Method
Source code in src/workbench/api/public_data.py
__repr__()
Return a string representation of the PublicData object.
Source code in src/workbench/api/public_data.py
describe(name)
Return a description of a dataset including source references.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Dataset name (e.g. "comp_chem/logp/logp_all"). |
required |
Returns:
| Type | Description |
|---|---|
Optional[dict]
|
dict with description, column info, references, etc., or None if not found. |
Source code in src/workbench/api/public_data.py
details()
Return detailed metadata for all datasets
Returns:
| Type | Description |
|---|---|
DataFrame
|
pd.DataFrame: DataFrame with name, size (MB), and modified date for each dataset. |
Source code in src/workbench/api/public_data.py
get(name)
Retrieve a dataset by name
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The dataset name (as returned by list()). |
required |
Returns:
| Type | Description |
|---|---|
Union[DataFrame, None]
|
pd.DataFrame: The retrieved DataFrame or None if not found. |
Source code in src/workbench/api/public_data.py
list()
List all available datasets
Returns:
| Name | Type | Description |
|---|---|---|
list |
list
|
Dataset names (relative paths without extensions) available in the public store. |