示例#1
0
def test_renameColumn2():
	testing_df = df.copy()
	(load.renameColumn(testing_df, 'col26hbbj', 'hello'))
	result_df = df.copy()
	assert (((testing_df.fillna(0) == result_df.fillna(0)).all()).all()) == True
示例#2
0
def test_renameColumn1():
	testing_df = df.copy()
	result_df = df.copy()
	load.renameColumn(testing_df, 'col1', 'hello')
	result_df.rename(columns={'col1': 'hello'}, inplace=True)
	assert ((testing_df.dtypes.index == result_df.dtypes.index).all()) == True