I have an excel file where the headers have drop downs which can be used to select rows based on specific column values (exactly what WHERE statement does). I import this file into pandas and perform some operation. Let's say I drop duplicate values based on "emp_id" column"
data = data.drop_duplicates(['emp_id'])
Then I save this dataframe to an excel,
data.to_excel("new_data.xlsx")
However, this new data does not have any drop down on header. Is there way to retain the drop down or python/pandas does not support it?