test_aide.pandas.adjusted_dataframe_params¶
- test_aide.pandas.adjusted_dataframe_params(df_1, df_2, seed=0)[source]¶
Wrapper function to create copies of input pd.DataFrames pairs and adjust either the index of the dataframe, or split the dataframe into individual rows. The last item in the list is a pytest.param of the original inputs.
This function can be used in combination with the pytest.mark.parametrize decorator to easily test that a transformer transform method preserves the index of the input, and gives the expected outputs, when called row by row as well as multi row inputs.