2017-10-04 4 views

답변

1
아래 코드는 속임수를 썼는지

:

코드 :

import pandas as pd 
from sodapy import Socrata 

# Unauthenticated client only works with public data sets. Note 'None' 
# in place of application token, and no username or password: 
client = Socrata("health.data.ny.gov", None) 

# First 2000 results, returned as JSON from API/converted to Python list of 
# dictionaries by sodapy. 
Results = client.get("cr7a-34ka", limit=2000) 

# Convert to pandas DataFrame 
df = pd.DataFrame.from_records(Results) 
0

파이썬의 경우, 비공식 sodapy 라이브러리가 시작하기에 좋은 장소입니다!