In the Databricks visualization reference it states
PySpark, pandas, and koalas DataFrames have a display method that calls the Databricks display function. You can call it after a simple DataFrame operation
with example
diamonds_df = spark.read.csv("/databricks-datasets/Rdatasets/data-001/csv/ggplot2/diamonds.csv", header="true", inferSchema="true")
diamonds_df.select("color","price").display()
but when I try the same in my databricks cluster I get the error
AttributeError: 'DataFrame' object has no attribute 'display'
Need help why I am gettin the error, I did all the same mentioned in the visulaization reference.
.display()will work only forAvailable in Databricks Runtime 7.1 and above.