def _layer_reader(df_reader: DataFrameReader, format_key: str, path: Optional[str], **options: str) -> RasterFrameLayer: """ Loads the file of the given type at the given path.""" df = df_reader.format(format_key).load(path, **options) return _convert_df(df)
def _aliased_reader(df_reader: DataFrameReader, format_key: str, path: Optional[str], **options: str) -> DataFrame: """ Loads the file of the given type at the given path.""" return df_reader.format(format_key).load(path, **options)