Код: Выделить всё
import polars as pl
df = pl.read_csv("export.csv", encoding="utf8")
print(df)
Код: Выделить всё
Traceback (most recent call last):
File "c:\dev\Python\my_polars.py", line 5, in
print(df)
~~~~~^^^^
File "C:\data\python\Lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode characters in position 23-122: character maps to
Подробнее здесь: https://stackoverflow.com/questions/792 ... ith-polars
Мобильная версия