Skip to content

Latest commit

 

History

History
46 lines (24 loc) · 1.23 KB

pycmap_retrieve_dataset.rst

File metadata and controls

46 lines (24 loc) · 1.23 KB

Retrieve Dataset

image

image

get_dataset(tableName)

Returns the entire dataset. It is not recommended to retrieve datasets with more than 1 million rows using this method. For large datasets, please use the subset_ST method and retrieve the data in smaller chunks. Note that this method does not return the dataset metadata. Use the metadata method to get the dataset metadata.

Parameters
tableName: string

The name of the table associated with the dataset. A full list of table names can be found in the Catalog or Dataset_list method.

returns

Pandas dataframe.

Example

#!pip install pycmap -q     #uncomment to install pycmap, if necessary

import pycmap

api = pycmap.API(token='<YOUR_API_KEY>')
api.get_dataset('tblMGL1704_Gradients2_IFCB_Abundance')