snowflake.snowpark.types.PandasDataFrameType¶
- class snowflake.snowpark.types.PandasDataFrameType(col_types: Iterable[DataType], col_names: Optional[Iterable[str]] = None)[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/types.py#L781-L848)¶
Bases:
_PandasType
pandas DataFrame data type. The input should be a list of data types for all columns in order. It cannot be used as the return type of a pandas UDF.
Methods
fromJson
(json_dict)from_json
(json_dict)get_snowflake_col_datatypes
()Get the column types of the dataframe as the input/output of a vectorized UDTF.
jsonValue
()json_value
()simpleString
()simple_string
()typeName
()type_name
()