PySpark Regression is a Python library for regression testing Spark DataFrames, enabling comparison of outputs between different runs or environments. Version 4.2.4 is current; release cadence is irregular but active.
pip install pyspark-regressionNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: compare two Spark DataFrames with a key column.
Replace `compare_dataframes(df1, df2, key)` with `RegressionTest().compare(df1, df2, key=key)`.
Ensure key column contains unique values, or use additional columns to form a composite key.
Use `df.select(*ordered_columns)` before comparing to enforce column order.
Replace `ignore_nulls=True` with `allow_null_mismatch=True`.
Install with pip install pyspark-regression and import using from pyspark_regression import RegressionTest.
Use from pyspark_regression import RegressionTest directly.
Drop duplicates or use a different key/combination of columns that yields unique rows.