APIs
load_file_data

load_file_data Function

Summary:

The load_file_data function is used to read data from a specified file or cell and return it as a pandas.DataFrame. This function can either accept parameters to specify the file directly or read the referenced file cell through a RefResponse object. See the section on ref functions for more information on the RefResponse object.

Parameters

  • Various configuration parameters (file name, timestamp, etc.).

Response:

  • pandas.DataFrame: data of the read file.

Usage example:

from morphdb_utils.api import load_file_data
 
data = {
    "sheet_cell": load_file_data(ref("sheet_cell")),
}
 
@transform
def main(data: Dict[str, pd.DataFrame]):
    df = data["sheet_cell"]

Load File