daft.DataFrame.describe#
- DataFrame.describe() DataFrame [source]#
Returns the Schema of the DataFrame, which provides information about each column, as a new DataFrame.
Example
>>> import daft >>> df = daft.from_pydict({"a": [1, 2, 3], "b": ["x", "y", "z"]}) >>> df.describe().show() ╭─────────────┬───────╮ │ column_name ┆ type │ │ --- ┆ --- │ │ Utf8 ┆ Utf8 │ ╞═════════════╪═══════╡ │ a ┆ Int64 │ ├╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌┤ │ b ┆ Utf8 │ ╰─────────────┴───────╯ (Showing first 2 of 2 rows)
- Returns:
A dataframe where each row is a column name and its corresponding type.
- Return type: