Can't display histogram in Databricks Notebooks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2025 07:34 AM
Is it a known bug? It says to use display(dataframe) for is not working
How can I display it using Databricks Visualizations? Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2025 07:47 AM
This should work, can you show what df_cmp looks like? and what sort of object it is using
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2025 11:31 AM
@emma_s , here is what you asked:
type(df_cmp) :
pyspark.sql.classic.dataframe.DataFrame
df_cmp.describe():
DataFrame[
run_summary: string,
entity_id: string,
location_id: string,
category_id: string,
elasticity_value: string,
demand_forecast: string,
execution_flag: string,
execution_status: string,
elasticity_diff: string,
elasticity_rel_diff: string,
elasticity_diff_signed: string,
forecast_diff: string,
forecast_rel_diff: string
]
Image of some values:
Why the "dt" value is not shown when using the describe method?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2025 01:57 AM
The describe looks like a completely different table to the image of values, they have different field names and different types. At what point do you get the error? Does it let you get the visualisation pop up? It should work fine. Is it when you try to put the histogram on?