pull/33/merge
KOLANICH 2021-07-15 13:03:31 +05:30 committed by GitHub
commit fc07f624ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import
from io import open
import os import os
import sqlite3 import sqlite3
import zipfile import zipfile
@ -592,7 +594,7 @@ class Table(object):
kw = {"orient": "records"} kw = {"orient": "records"}
kw.update(kwargs) kw.update(kwargs)
json_string = self.df.to_json(**kw) json_string = self.df.to_json(**kw)
with open(path, "w") as f: with open(path, "w", encoding="utf-8") as f:
f.write(json_string) f.write(json_string)
def to_excel(self, path, **kwargs): def to_excel(self, path, **kwargs):