df has an integer column 'A'. Filter out rows that contain the same integer
as the row immediately above. Return the filtered DataFrame.
Sample data:
df:
A
0 1
1 2
2 2
3 3
4 4
5 5
... (11 rows total)
Sign in to write and run your own code.
solve(...)