コード例 #1
0
def test_custom_value2():
	testing_df = df.copy()
	with pytest.raises(Exception):
		clean.fillWithCustomValue(testing_df, 6, 'testValue')
コード例 #2
0
def test_custom_value1():
	testing_df = df.copy()
	result_df = df.copy()
	clean.fillWithCustomValue(testing_df, 1, 'testValue')
	result_df['col2'].fillna(value='testValue', inplace=True)
	assert (((testing_df.fillna(0) == result_df.fillna(0)).all()).all()) == True