snowflake.snowpark.DataFrameReader.file¶
- DataFrameReader.file(path: str) DataFrame[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.42.0/src/snowflake/snowpark/dataframe_reader.py#L2180-L2233)¶
Returns a DataFrame with a single column
FILEcontaining a list of files in the specified Snowflake stage location (either internal or external).- Parameters:
path – The stage location to list files from (e.g., “@mystage”, “@mystage/path/”).
Example:
This function or method is experimental since 1.37.0.