【发布时间】:2019-11-21 14:50:14
【问题描述】:
我正在尝试做这样的事情:
df = pd.read_csv(r'Desktop/test.csv')
url = 'http://localhost:5000/run_model'
response = requests.post(url, data=df)
但我遇到了这个错误:
ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
【问题讨论】:
-
只传递文件本身
标签: python pandas python-requests