I need to move an object in a pandas DataFrame from one location to another, and leave the original location of that object blank without affecting other columns.
employees = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0]
levels = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
df = pd.DataFrame({"Employees":employees, "Level":levels})
#move employee 1 from index 3 to index 1 without altering Level column
#leave index 3 blank after moving employee 1
Visually, I need to go from starting point to end point.
Thank you!