• 1000 *
Ниже приведен фрагмент кода, который я пытаюсь выполнить:
from pyspark.sql.types import StructField, StringType, IntegerType, StructType
baseshema = StructType[StructField('ID Number', StringType(), True),
StructField('Entity Name', StringType(), True),
StructField('Phone Number', StringType(), True),
StructField('Address',StructType[StructField('Building', StringType(), True),
StructField('Street', StringType(), True),
StructField('City', StringType(), True),
StructField('State', StringType(), True),
StructField('Postcode', StringType(), True)]),
StructField('Location',StructType[StructField('Latitude', StringType(), True),
StructField('Longitude', StringType(), True),
StructField('Location', StringType(), True)])]
Заранее благодарим за ответ!