Plotly鐨刧et_file鏂规硶濡備綍浣跨敤
鍦≒lotly涓紝get_file鏂规硶鐢ㄤ簬浠嶱lotly鏈嶅姟鍣ㄨ幏鍙栨枃浠跺苟杩斿洖鏂囦欢鐨勫唴瀹广€傝鏂规硶闇€瑕佹彁渚涙枃浠剁殑URL浠ュ強璁块棶鍑瘉銆備緥濡傦細
import plotly
file_url = "https://plotly.com/~username/1234.csv"
file_content = plotly.get_file(file_url, username="username", api_key="api_key")
print(file_content)
鍦ㄤ笂闈㈢殑绀轰緥涓紝鎴戜滑浣跨敤get_file鏂规硶浠庢寚瀹氱殑URL锛坒ile_url锛夎幏鍙栨枃浠跺唴瀹癸紝骞舵彁渚涗簡鐢ㄦ埛鍚嶏紙username锛夊拰API瀵嗛挜锛坅pi_key锛変綔涓鸿璇佷俊鎭€傝幏鍙栫殑鏂囦欢鍐呭灏嗚瀛樺偍鍦╢ile_content鍙橀噺涓紝骞跺彲浠ヨ繘涓€姝ュ鐞嗘垨浣跨敤銆?/p>
相关问答