Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import pandas as pd
import requests
import json
# API url
url = ""
# data path
data = "dir/input/data/test/X.csv"
# load data to test the API - we are not testing the model!
x = pd.read_csv(data, index_col=0)
# make the post
print(, data=json.dumps(x.to_dict())).content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.