This documentation is for the unstable version of GoodData, currrently in development.
For stable version, go to the latest stable version of this article.
For stable version, go to the latest stable version of this article.
catalog_data_source.
staging_upload
staging_upload(csv_file: Path) -> str
Upload a CSV file to the staging area.
Parameters
| name | type | description |
|---|---|---|
| csv_file | Path | Path to the CSV file to upload. |
Returns
| type | description |
|---|---|
| str | Location string referencing the uploaded file in staging. |
Example
from pathlib import Path
# Upload a CSV file to staging
location = sdk.catalog_data_source.staging_upload(csv_file=Path("data.csv"))