Skip to content

DataFrame Explanation

API bool = True) -> str:

This method generates a natural language explanation of the SQL plan of the input Spark DataFrame.


Given a DataFrame auto_df from Data Ingestion, you can explain a DataFrame with the following code:"brand with the highest growth")

In summary, this dataframe is retrieving the brand with the highest sales change in 2022 compared to 2021. It presents the results sorted by sales change in descending order and only returns the top result.