read_hdf¶
-
hhpy.main.read_hdf(file: str, key: Union[str, List[str]] = None, sample: int = None, random_state: int = None, do_print: bool = True, catch_error: bool = True) → pandas.core.frame.DataFrame[source]¶ read a DataFrame from hdf file
Parameters: - file – The path to the file to read from
- key – The key(s) to read, if not specified all keys are read [optional]
- sample – If specified will read sample keys at random from the file, ignored if key is specified [optional]
- random_state – Random state for sample [optional]
- do_print – Whether to print intermediate steps [optional]
- catch_error – Whether to catch errors when reading [optional]
Returns: pandas DataFrame