itholic opened a new pull request, #43398:
URL: https://github.com/apache/spark/pull/43398

   ### What changes were proposed in this pull request?
   
   This PR proposes to support utility functions `assert_frame_equal`, 
`assert_series_equal`, and `assert_index_equal` in the Pandas API on Spark to 
aid users in testing.
   
   
   ### Why are the changes needed?
   
   These utility functions allow users to efficiently test the equality of 
`DataFrames`, `Series`, and `Indexes` in the Pandas API on Spark. Ensuring 
accurate testing helps in maintaining code quality and user trust in the 
platform.
   
   e.g.
   ```python
   from pyspark.pandas.testing import assert_frame_equal
   
   df1 = spark.createDataFrame([('Alice', 1), ('Bob', 2)], ["name", "age"])
   df2 = spark.createDataFrame([('Alice', 1), ('Bob', 2)], ["name", "age"])
   
   assert_frame_equal(df1, df2)
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. Users will now have access to `assert_frame_equal`, 
`assert_series_equal`, `and assert_index_equal` functions for testing purposes.
   
   
   ### How was this patch tested?
   
   Added doctests.
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to