250x250
Link
๋์ GitHub Contribution ๊ทธ๋ํ
Loading data ...
Notice
Recent Posts
Recent Comments
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
Tags
- ์ธ๋์ํ๋ง
- ์ค๋ฒ์ํ๋ง
- ํ์ด์ฌ
- ๊ตฐ์งํ
- ๋ฐ์ดํฐ๋ถ์
- ๋์ํ๋ณธ
- DBSCAN
- t-test
- numpy
- opencv
- ๋ ๋ฆฝํ๋ณธ
- iloc
- ํฌ๋กค๋ง
- pandas
- ๋ฐ์ดํฐ๋ถ์์ค์ ๋ฌธ๊ฐ
- ๋ฐ์ดํฐ๋ถ์์ ๋ฌธ๊ฐ
- ๋น ๋ฐ์ดํฐ
- ADP
- ์ฃผ์ฑ๋ถ๋ถ์
- ADsP
- datascience
- ํ ์คํธ๋ถ์
- ๋น ๋ฐ์ดํฐ๋ถ์๊ธฐ์ฌ
- PCA
- dataframe
- ์๋ํด๋ผ์ฐ๋
- LDA
- ๋ฐ์ดํฐ๋ถ๊ท ํ
- Lambda
- Python
Archives
Data Science LAB
[Python] Json ํ์ผ ์ฝ๊ธฐ/์์ /์ฐ๊ธฐ ๋ณธ๋ฌธ
728x90
1. Json ํ์ผ ์ฝ๊ธฐ
import json
with open('ํ์ผ ๊ฒฝ๋ก','r') as f:
data = json.load(f)
2. Json ํ์ผ ์์
with open('ํ์ผ ๊ฒฝ๋ก', 'w') as make_file:
json.dump(data,make_file)
3. Json ํ์ผ ์ฐ๊ธฐ
with open('์ ์ฅ๊ฒฝ๋ก','w', encoding='utf-8) as make_file:
json.dump([๋์
๋๋ฆฌ ์ด๋ฆ] , make_file, indent='\t')
๋จผ์ , ํ์ด์ฌ ์ธ์ด๋ฅผ ์ฌ์ฉํ์ฌ ๋์ ๋๋ฆฌ๋ฅผ ์์ฑํ ํ , json ํ์์ ํ์ผ๋ก ์ ์ฅํ ์ ์๋ค.
728x90
'๐ Python > ๊ธฐ์ด' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Python] ํ์๋๋ ํ ๋ฆฌ ๊ฒ์ (0) | 2022.05.03 |
---|---|
[Python] ๋ช ๋ นํ ์ธ์๋ฐ๊ธฐ(sys.argv) (0) | 2022.04.27 |
[Python]qrcode ๋ชจ๋์ ์ด์ฉํ ๋ธ๋ก๊ทธ qr ์ฝ๋ ์์ฑ (0) | 2022.04.25 |
ํด๋ ์์ ํ์ผ ํ๋ฒ์ ๋ถ๋ฌ์ค๊ธฐ (0) | 2022.04.13 |
[Python] ๋ ์ง(Datetime) ๋ค๋ฃจ๊ธฐ (0) | 2022.03.22 |
Comments