starting VaccineDistributionByZipcode

This commit is contained in:
frankknoll
2023-03-08 21:41:56 +01:00
parent f5a260b0d2
commit c1c5df5d8d
6 changed files with 240 additions and 11 deletions

View File

@@ -3,22 +3,16 @@ import json
class IOUtils:
@staticmethod
def saveDataFrame(dataFrame, file):
# IOUtils.saveDataFrameAsExcelFile(dataFrame, file)
# IOUtils.saveDataFrameAsHtml(dataFrame, file)
IOUtils.saveDataFrameAsJson(dataFrame, file)
@staticmethod
def saveDataFrameAsExcelFile(dataFrame, file):
IOUtils.ensurePath(file)
dataFrame.to_excel(file + '.xlsx')
dataFrame.to_excel(file)
@staticmethod
def saveDataFrameAsHtml(dataFrame, file):
IOUtils.ensurePath(file)
dataFrame.to_html(
file + '.html',
file,
index = False,
table_id = 'batchCodeTable',
classes = 'display',
@@ -29,7 +23,7 @@ class IOUtils:
def saveDataFrameAsJson(dataFrame, file):
IOUtils.ensurePath(file)
dataFrame.to_json(
file + '.json',
file,
orient = "split",
index = False)