class documentation

Calculate the statistics of the dataset.

Method __init__ Initialize Statistics.
Method load_data Load the json file.
Method summary Get summary of the data.
Instance Variable data_path path of the json file.
Instance Variable name name of the dataset.
def __init__(self, data_path: Path, name: str): (source)

Initialize Statistics.

Parameters
data_path:Pathpath of the original json file.
name:strname of the dataset.
def load_data(self) -> dict[str, dict]: (source)

Load the json file.

Returns
Dict[str, dict]original data.
def summary(self): (source)

Get summary of the data.

Parameters
data:Dict[str, dict]original data of a single hospital.
data_path: Path = (source)

path of the json file.

name of the dataset.