Pandy Sprawdź, czy kolumna jest sortowana

# credit to the Stack Overflow user in the source link

df.your_column.is_monotonic_increasing 
# or 
df.your_column.is_monotonic_decreasing
wolf-like_hunter