def test_duplicateRows2(): testing_df = df.copy() result_df = testing_df.copy() return_df = load.duplicateRowsInColumns(testing_df, [1]) result_df.drop(result_df.index[0], inplace=True) result_df.drop(result_df.index[0], inplace=True) assert (((return_df.fillna(0) == result_df.fillna(0)).all()).all()) == True
def test_duplicateRows1(): testing_df = df.copy() testing_df['col3'] = pd.Series([2,2]) result_df = testing_df.copy() return_df = load.duplicateRowsInColumns(testing_df, [2]) assert (((return_df.fillna(0) == result_df.fillna(0)).all()).all()) == True