Merge pull request #188 from anakin87/master

[MRG] Add encoding kwarg to camelot.core.Table.to_html method
pull/189/head
Vinayak Mehta 2020-08-25 19:16:50 +05:30 committed by GitHub
commit 9087429501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -631,7 +631,7 @@ class Table(object):
""" """
html_string = self.df.to_html(**kwargs) html_string = self.df.to_html(**kwargs)
with open(path, "w") as f: with open(path, "w", encoding="utf-8") as f:
f.write(html_string) f.write(html_string)
def to_sqlite(self, path, **kwargs): def to_sqlite(self, path, **kwargs):