I want to replace DF1.index.values with DF2[some_column].values HOWEVER i only want to replace if DF2[some_column].value is not null or empty string.
DF1.index.values
Index(['a','b','c','d']), dtype='object')
DF2[some_column].values
['base','','','net 1']
Expected output
Index(['base','b','c','net 1']), dtype='object')
My attempt:
DF1.index = DF2[some_column].values
It's incorrect because it replaces everything and thats not what I want, I'm only interested in not null or empty values.