blazingsql.BlazingContext.describe_table¶
-
BlazingContext.
describe_table
(table_name)¶ Returns a dictionary with the names of all the columns and their types for the specified table. A ValueError is thrown if the table is not found.
table_name : string of the table name to describe
>>> from blazingsql import BlazingContext >>> bc = BlazingContext() >>> bc.create_table('nation', "nation/*.parquet") >>> info_table = bc.describe_table("nation") >>> print(info_table) {'n_nationkey': 'int32', 'n_name': 'str', 'n_regionkey': 'int32', 'n_comment': 'str'}