Ajay-Pandey
Databricks MVP

Hi @dream ,

In this case, you can go with dataframe.dtypes for comparing the schema or datatypes for two dataframe
Metadata store information about column properties

Ajay Kumar Pandey