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
- MS-SQL
- node.js
- tensorflow
- urllib
- 날짜
- python
- 리눅스
- PyQt5
- swift
- flutter
- pandas
- port
- Excel
- MySQL
- Linux
- Unity
- PyQt
- sqlite
- 유니티
- 맛집
- javascript
- ubuntu
- 함수
- ASP
- 다이어트
- mssql
- 라즈베리파이
- GIT
- IOS
- PER
Archives
아미(아름다운미소)
python pandas 데이터를 excel 파일생성시 한글깨짐문제 해결 본문
python pandas 데이터를 excel 파일생성시 한글깨짐문제 해결
df.to_csv("파일명")
위의 메소드는 excel 에서 읽으면 깨지는 현상이 발생합니다.encoding 을 utf-8 이나 다른 걸로 해도 윈도우 엑셀에서 읽으려고 하면 읽히지 않고 한글이 깨집니다.
해결방법
df.to_excel('foo.xlsx', sheet_name='sheet1')
'랭귀지 > python' 카테고리의 다른 글
| python 파이썬 인터넷 - 네트워크 연결 확인 (2) | 2019.01.26 |
|---|---|
| Python 문자열 자르기 및 합치기, Split(), join() (0) | 2019.01.25 |
| The Eclipse executable launcher was unable to locate its companion shared library (0) | 2019.01.09 |
| python ipynb 파일을 python 파일로 변환하기 (0) | 2019.01.07 |
| python 부동 소수점 나머지 연산 (0) | 2019.01.05 |
Comments