Answers for "python post np.array object"

0

python post np.array object

params = {'param0': 'param0', 'param1': 'param1'}
arr = np.random.rand(10, 10)
data = {'params': params, 'arr': arr.tostring()}
response = requests.post(url, json=data)
Posted by: Guest on July-07-2021

Python Answers by Framework

Browse Popular Code Answers by Language