Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenk committed Sep 5, 2023
1 parent 4325e87 commit 4bf46af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/examples/pandera_ex.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# tags::pandera_imports[]
import pandera.pyspark as pa
import pyspark.sql.types as T

# end::pandera_imports[]


Expand Down Expand Up @@ -41,9 +42,7 @@ class GenderData(pa.DataFrameModel):
# end::validate_gender_data[]

# tag::validate_project_data[]
project_data = spark.read.csv(
"./data/project.csv",
header=True, inferSchema=True)
project_data = spark.read.csv("./data/project.csv", header=True, inferSchema=True)
validated_df = ProjectDataSchema(project_data)
# Print out the errors. You may wish to exit with an error condition.
if validated_df.pandera.errors != {}:
Expand Down

0 comments on commit 4bf46af

Please sign in to comment.