import pandas as pd
# create a sample DataFrame
df = pd.DataFrame({'a': [1, 2, 3, 4], 'b': [5, 6, 7, 8], 'c': [9, 10, 11, 12]})
# shift the DataFrame by one row
shifted_df = df.shift(1)
# compute the correlation between each row and the succeeding row
correlations = df.corrwith(shifted_df)
print(correlations)