Spark Programming Spark SQL

DataFrame columns and dtypes The columns method returns the names of all the columns in the source DataFrame as an array of String. The dtypes method returns the data types of all the columns in the source DataFrame as an array of tuples. The first element in a tuple is the name of a column and the second element is the data type of that column. ................
................