Sample Demand Data
Available Datasets
Industry
File
Using the Sample Data
With Beam
import requests
analysis_id = "YOUR_ANALYSIS_ID"
PHQ_API_TOKEN = "YOUR_API_TOKEN"
with open("sample_demand_retail.csv", "rb") as f:
response = requests.post(
url=f"https://api.predicthq.com/v1/beam/analyses/{analysis_id}/sink",
headers={
"Authorization": f"Bearer {PHQ_API_TOKEN}",
"Content-Type": "text/csv",
},
data=f,
)
print("Upload successful" if response.status_code == 202 else response.json())With Forecasts API
Last updated
Was this helpful?