Share via

datatype change in databricks

Shambhu Rai 1,411 Reputation points
2022-09-21T15:02:35.12+00:00

HI Expert,

how we can change the data type on dataframe level in databricks

Azure Databricks
Azure Databricks

An Apache Spark-based analytics platform optimized for Azure.

0 comments No comments

Answer accepted by question author

Dillon Silzer 60,931 Reputation points
2022-09-21T15:04:51.703+00:00

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.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.