반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Redshift
- Apache
- Mac
- array
- hive
- dataframe
- numpy
- GIT
- string
- gas
- SQL
- django
- Python
- Kotlin
- list
- PySpark
- 파이썬
- Google Spreadsheet
- math
- Google Excel
- google apps script
- Github
- Java
- Tkinter
- matplotlib
- PANDAS
- Excel
- PostgreSQL
- c#
Archives
- Today
- Total
목록Dumps (1)
달나라 노트
Python json : json.dumps, json.loads (JSON 데이터 만들기, dictionary를 JSON data로 바꾸기, dictionary를 JSON으로 바꾸기, dictionary JSON 전환, bytes를 dictionary로 바꾸기, JSON data 보기 쉽게 나타내기)
JSON (JavaScript Object Notation) 데이터는 프로그래밍에서 자주 쓰이는 형태의 데이터입니다. 다양한 정보를 보고 다루기 쉽게 저장할 수 있죠. 기본적으로 JSON data는 Python의 dictionary type과 매우 유사합니다. Python의 dictionary를 JSON 형태의 string으로 변환하기 위해서는 json library의 dumps method를 사용하면 됩니다. Syntax json.dumps(dictionary, indent=n) - dictionary JSON 형태의 string으로 변환할 dictionary 입니다. - indent = n optional한 parameter입니다. 명시하지 않아도 되며 명시할 경우 출력할 때 더 보기 쉽게 n개 만큼..
Python/Python Basic
2023. 1. 2. 19:32