I have data in dataframe in this following format:
Row_1 AB123, 01-mar-2011, 30-mar-2011, data1, data2
Row_2 CD123, 01-mar-2011, 30-mar-2011, data1, data2
Row_3 CD123, 01-apr-2011, 30-apr-2011, data1, data2
Row_4 EF123, 01-nov-2011, 30-nov-2011, data1, data2
Need the final row to be:
Row_1 AB123, 01-mar-2011,30-apr-2011,data1,data2
Row_2 CD123, 01-mar-2011,30-mar-2011,data1,data2
Row_4 EF123, 01-nov-2011, 30-nov-2011,data1,data2
What I have tried:
Tried to use for loop to check each record and then use if loop to check for each condition