You can shift only the B and C column
import pandas as pd
# Create the DataFrame
data = {
'A': ['First', 'Second'],
'B': ['row to delete', 'row to delete'],
'C': ['row to shift', 'row to shift']
}
df = pd.DataFrame(data)
print(df)
# Shift only the 'B' and 'C' columns
df[['B', 'C']] = df[['B', 'C']].shift(-1, axis=1, fill_value='')
print(df)