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 | 29 |
| 30 |
Tags
- ๋น ๋ฐ์ดํฐ
- ๋น ๋ฐ์ดํฐ๋ถ์๊ธฐ์ฌ
- datascience
- PCA
- DBSCAN
- ํฌ๋กค๋ง
- Python
- ๋ฐ์ดํฐ๋ถ์์ ๋ฌธ๊ฐ
- numpy
- ๋ ๋ฆฝํ๋ณธ
- dataframe
- ADsP
- ๊ตฐ์งํ
- LDA
- ๋์ํ๋ณธ
- t-test
- ํ์ด์ฌ
- ์ฃผ์ฑ๋ถ๋ถ์
- opencv
- ์ค๋ฒ์ํ๋ง
- ์ธ๋์ํ๋ง
- Lambda
- ๋ฐ์ดํฐ๋ถ์
- ๋ฐ์ดํฐ๋ถ์์ค์ ๋ฌธ๊ฐ
- iloc
- ์๋ํด๋ผ์ฐ๋
- pandas
- ํ ์คํธ๋ถ์
- ADP
- ๋ฐ์ดํฐ๋ถ๊ท ํ
Archives
Data Science LAB
[Python error ํด๊ฒฐ๋ฒ] SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape ๋ณธ๋ฌธ
๐ Python/Python Error
[Python error ํด๊ฒฐ๋ฒ] SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
ใ ใ ใ ใ 2022. 1. 26. 16:55728x90
Python์์ ํ์ผ์ ๋ถ๋ฌ์ฌ ๋
import pandas as pd
titanic_df = pd.read_csv("C:๏ฟฆUsers๏ฟฆDesktop๏ฟฆtitanic_train.csv")

๋ค์๊ณผ ๊ฐ์ ์๋ฌ๊ฐ ๋ฐ์ํ๋ ๊ฒฝ์ฐ๊ฐ ์๋ค.
์ฃผ๋ก ํ์ผ ๊ฒฝ๋ก์ \ ๋์ ๏ฟฆ์ฌ์ฉํ์ฌ ๏ฟฆ๋ฅผ ์ ๋์ฝ๋๋ก ์ธ์ํ์ฌ ๋ฐ์ํ๋ ์๋ฌ์ด๋ค.
ํด๊ฒฐ ๋ฐฉ๋ฒ
1. ๏ฟฆ๋์ ์ญ์ฌ๋์(\) ์ฌ์ฉ
import pandas as pd
titanic_df = pd.read_csv('C:\Users\Desktop\titanic_train.csv')
2. ๋ฐ์ดํ(') ์์ r ๋ถ์ด๊ธฐ
import pandas as pd
titanic_df = pd.read_csv(r"C:\Users\Desktop\titanic_train.csv")
3. ๏ฟฆ๋๋ฒ ์ฐ๊ธฐ(๏ฟฆ๏ฟฆ)
import pandas as pd
titanic_df = pd.read_csv("C:\\Users\\Desktop\\titanic_train.csv")728x90
'๐ Python > Python Error' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| [Python Error] AttributeError: 'SMOTE' object has no attribute 'fit_sample' (0) | 2022.03.24 |
|---|---|
| [Python Error] NetworkXError: random_state_index is incorrect (0) | 2022.03.17 |
| [Python]KONLPy ์ค์น ๋ฐฉ๋ฒ ๋ฐ ์๋ฌ ํด๊ฒฐ (0) | 2022.02.25 |
| [Python Error] SyntaxError: cannot assign to function call (0) | 2022.02.20 |
| [Python error] ํ์ด์ฌ ์์ฃผ ๋๋ ์ค๋ฅ ์ ๋ฆฌ (0) | 2022.02.17 |
Comments