Created
March 29, 2017 04:48
-
-
Save smobile-jspark/b51794511c2d6043549da0f318bc7dfe to your computer and use it in GitHub Desktop.
큰 용량의 JSON 파일을 엑셀로 변환하기
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parse, baas 등에서 table 을 export 하면 json 파일로 나오게 됩니다. | |
이때 json 파일이 용량이 커서 json -> excel 등의 online converter 등은 동작이 쉽지 않습니다. | |
제가 변환하는 방법은 아래와 같습니다. | |
1) vi 에서 json 파일을 연후 {results: 와 끝의 } 를 제거 하여 array 상태로 저장 | |
2) python 을 이용하여 다음과 같이 처리 | |
>>> import pandas | |
>>> pandas.read_json('1000009494_MakeGoodHabit_out.json').to_excel('makegoodhabit.xlsx') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
한글이 깨지는데 어떻게 해결하면 좋나요?