Jan-14-2021, 08:12 PM
hi again
update - well i run Python 2.7.1
u will install and update the system - to run with version 3xy
i hope that i will be successful - i guess that i can do this again
step two: i will add all the arguments - so that we have
update - well i run Python 2.7.1
u will install and update the system - to run with version 3xy
i hope that i will be successful - i guess that i can do this again
$ python3 -c 'open("in", "w", newline="", encoding="UTF-8")' $ python2 -c 'open("in", "w", newline="", encoding="UTF-8")' Traceback (most recent call last): File "<string>", line 1, in <module> TypeError: file() takes at most 3 arguments (4 given)since i nee to take care for the decoding options..see the above mentioned issues
a UnicodeEncodeError, seems that my system default encoding isn't utf-8, therefor, should i do some extra thing to avoid issues here!? should i try with df.to_csv("data.csv", index=False, encoding="utf-8")step one: i will update the python to 3.xy
step two: i will add all the arguments - so that we have
$ python3 -c 'open("in", "w", newline="", encoding="UTF-8")' $ python2 -c 'open("in", "w", newline="", encoding="UTF-8")' Traceback (most recent call last): File "<string>", line 1, in <module> TypeError: file() takes at most 3 arguments (4 given)look forward to hear from you