I am new to Python Programming, struggling with pandas data feature. I have pandas dataframe set like below
col1 col2 col3 col4
12:00 1 1 3 2
12:05 1 1 3 2
12:10 1 2 4 2
12:15 1 2 4 2
12:20 1 2 4 2
12:25 2 3 7 8
12:30 2 3 7 8
12:35 2 3 7 8
12:40 2 3 7 8
12:45 4 5 4 3
What I want to do is to extract(or erase) rows that when data of each column changes
(row 1,2) (row 3,4,5) (row 6,7,8,9) (row 10) have same values with different time so that result would be like below. Time data cannot be ignored.
col1 col2 col3 col4
12:00 1 1 3 2
12:10 1 2 4 2
12:25 2 3 7 8
12:45 4 5 4 3
If there is any feature or function , it would be great help. Thank you.