I changed the Databricks runtime​ version in cluster and it worked in my case. Thank you @Kaniz Fatma​