import pandas as pd
df = pd.DataFrame({'A': [1, 5, 3, 8, 7], 'B': [6, 2, 9, 4, 0]})
value = 4
# Get the rows that contain values greater than the given value
selected_rows = df[df['A'] > value]
# Get the indices of the selected rows
positions = selected_rows.index
print(positions)