def METHOD_NAME(self, if_empty: Literal["warn", "fail", "skip"] = "skip") -> pd.DataFrame:
    """
    Function for transforming data from dictionary to pd.DataFrame.
    Args:
        if_empty (Literal["warn", "fail", "skip"], optional): What to do if output DataFrame is empty. Defaults to "skip".
    Returns:
        pd.DataFrame: DataFrame with data downloaded from Business Core API view.
    Raises:
        APIError: When selected API view is not available.
    """
    view = self.url.split("/")[-1]
    if view not in [
        "GetCustomerData",
        "GetItemMaster",
        "GetPendingSalesOrderData",
        "GetSalesInvoiceData",
        "GetSalesReturnDetailData",
        "GetSalesOrderData",
    ]:
        raise APIError(f"View {view} currently not available.")
    data = self.get_data().get("MasterDataList")
    df = pd.DataFrame.from_dict(data)
    logger.info(
        f"Data was successfully transformed into DataFrame: {len(df.columns)} columns and {len(df)} rows."
    )
    if df.empty is True:
        self._handle_if_empty(if_empty)
    return df