Skip to content

Instantly share code, notes, and snippets.

@yarax
Created August 25, 2022 06:46
Show Gist options
  • Save yarax/09ba485b18d19b405344232f5d1131d8 to your computer and use it in GitHub Desktop.
Save yarax/09ba485b18d19b405344232f5d1131d8 to your computer and use it in GitHub Desktop.
jsonschema
schema = StructType([
StructField("RecordNumber",IntegerType(),True),
StructField("Zipcode",IntegerType(),True),
StructField("ZipCodeType",StringType(),True),
StructField("City",StringType(),True),
StructField("State",StringType(),True),
StructField("LocationType",StringType(),True),
StructField("Lat",DoubleType(),True),
StructField("Long",DoubleType(),True),
StructField("Xaxis",IntegerType(),True),
StructField("Yaxis",DoubleType(),True),
StructField("Zaxis",DoubleType(),True),
StructField("WorldRegion",StringType(),True),
StructField("Country",StringType(),True),
StructField("LocationText",StringType(),True),
StructField("Location",StringType(),True),
StructField("Decommisioned",BooleanType(),True),
StructField("TaxReturnsFiled",StringType(),True),
StructField("EstimatedPopulation",IntegerType(),True),
StructField("TotalWages",IntegerType(),True),
StructField("Notes",StringType(),True),
StructField("LastModified",StringType(),True)
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment