Given the Minesweeper df (with mine and adjacent columns), set adjacent to
NaN for every row that contains a mine. Return the DataFrame.
Sample data:
df:
x y mine adjacent
0 0 0 0 1
1 0 1 1 2
2 1 0 0 3
3 1 1 1 1
Sign in to write and run your own code.
solve(...)