PRP201c_-_SU_2024_-_TE1_2532.webp
M

PRP201c_-_SU_2024_-_TE1_2532.webp

  • Media owner myhoa81
  • Ngày thêm
Kizspy | Question: 20 (Choose 1 answer)
Traceback (most recent call last):
Suppose you are trying to read a file "temp.csv" using pandas and you get the following error.
File "<input>", line 1, in<module>
UnicodeEncodeError: 'ascii' codec can't encode character.
Which of the following would likely correct this error?
Note: pandas has been imported as pd
A. pd.read_csv("temp.csv", compression='gzip')
B. pd.read_csv("temp.csv", dialect='str')
C. pd.read_csv("temp.csv", encoding='utf-8')
D. pd.write_csv("temp.csv", encoding='utf-8')

Thông tin

Category
PRP201c
Thêm bởi
myhoa81
Ngày thêm
Lượt xem
1,109
Lượt bình luận
3
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom