Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to Convert Great Expectations DataFrame to Apache Spark DataFrame

The following code will convert an Apache Spark DataFrame to a Great_Expectations DataFrame. For if I wanted to convert the Spark DataFrame, spkDF to a Great_Expectations DataFrame I would do the following:

ge_df = SparkDFDataset(spkDF)

Can someone let me know how convert a Great_Expectation dataframe to a Spark DataFrame.

So what would I need to do to convert the new Great_Expectations dataframe ge_df back to Spark DataFrame?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

According to the official docuemnation, the class SparkDFDataset holds the original pyspark dataframe:

This class holds an attribute spark_df which is a spark.sql.DataFrame.

So you should be able to access it with :

ge_df.spark_df
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading