Skip to content

Commit dd6fff6

Browse files
committed
revise decode error(3)
1 parent 7797278 commit dd6fff6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

_posts/2024-10-04-error_decode.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,10 @@ data = pd.read_csv(PATH, encoding="cp949")
3838

3939
```python
4040
data = pd.read_csv(PATH, encoding="utf-8-sig")
41+
```
42+
43+
위와 같은 방법으로 해결이 되지 않는 경우 아래와 같이 오류를 무시하는 argument인 encoding_errors에 "ignore"를 줌으로써 해결할 수 있습니다.
44+
45+
```python
46+
data = pd.read_csv(file, encoding_errors = "ignore")
4147
```

0 commit comments

Comments
 (0)