Answer the question
In order to leave comments, you need to log in
Python Can't save csv as utf-8?
Bottom line: I need to get a table from the site and save it in csv format, but I can't do it in utf 8 encoding.
The code is simple:
import pandas as pd
tables = pd.read_html('https://kody-smajlov-vkontakte.ru/')
db = tables[1]
db.to_csv("data.csv", encoding = 'utf-8')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question