---
title: "Data Ingestion Functions"
component: "pytigergraph"
version: "1.6"
module: "datasets"
html_url: "/pytigergraph/1.6/datasets/datasets"
canonical_url: "https://www.tigergraph.com/docs/pytigergraph/1.6/datasets/datasets"
markdown_url: "https://www.tigergraph.com/docs/pytigergraph/1.6/datasets/datasets.md"
---

[View as HTML](https://www.tigergraph.com/docs/pytigergraph/1.6/datasets/datasets)

# Data Ingestion Functions

Ingest stock datasets into a TigerGraph database. All functions in this module are called as methods on a [TigerGraphConnection object](https://www.tigergraph.com/docs/pytigergraph/1.8/core-functions/base.md).

## ingestDataset()

`ingestDataset(dataset: Datasets, cleanup: bool = True, getToken: bool = False) → None`

Ingest a stock dataset to a TigerGraph database.

#### Parameters:

* `dataset (Datasets)`: A Datasets object as `pyTigerGraph.datasets.Datasets`.
* `cleanup (bool, optional)`: Whether or not to remove local artifacts downloaded by `Datasets`after ingestion is done. Defaults to True.
* `getToken (bool, optional)`: Whether or not to get auth token from the database. This is required when auth token is enabled for the database. Defaults to False.
