閱讀鳴叫線的JSON文件我有以下的代碼,節省鳴叫一個JSON文件使用熊貓和Tweepy我需要通過線
for tweets in tweepy.Cursor(api.user_timeline, id=account).items(1000):
# depending on where the supports club are home or away
if tweets.created_at >= EarliestTweet:
#Write it to a file
json.dump(tweets._json,jsonfile, sort_keys = True, skipkeys = True, indent = 2,ensure_ascii=False)
使用熊貓dataframe.read_json
做我需要閱讀JSON文件一行一行或有可能通過read_json文件名來創建一個數據幀
您是否已經嘗試使用'read_json',如果是,發生了什麼?數據樣本也鼓勵更具體的解決方案。 http://stackoverflow.com/help/mcve – Stefan