Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
HI Expert,
how we can change the data type on dataframe level in databricks
An Apache Spark-based analytics platform optimized for Azure.
Answer accepted by question author
Hi @Shambhu Rai
If you are using pyspark, you can use the following example to change the datatype in the df:
https://www.projectpro.io/recipes/change-column-type-databricks-pyspark
-------------------------------
If this is helpful please accept answer.