Im using drop_duplicates to remove duplicates from my dataframe based on a column, the problem is this column is empty for some entries and those ended being removed to is there a way to make the function ignore the empty value. here is an example
Title summary
0 TITLE A summaryA
1 TITLE A summaryB
2 summaryC
3 summaryD
using this
data.drop_duplicates(subset ="TITLE",
keep = 'first', inplace = True)
I get a result like this:
Title summary
0 TITLE A summaryA
2 summaryC
but since last two rows are not duplicates i want to keep them. is there a ways for drop_duplicates to ignore empty values?