This part of code puts the EΞ
characters in a column and when exported it shows ??
in their place.
import geopandas
dff['KAEK']=dff['CAD'].str[:5].add('ΕΞ').add(dff['CAD_AD_F'].str[5:]).add(dff['rank'])
dff.to_file(out)
Where can i set the utf-8
?
It turns out that a different encoding worked. Just use dff. to_file(out,encoding='')
dff. to_file(out,encoding='')
and where is the encoding try your language specific versions until you find it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.