The problem of finding the maximum Grammar of sqlalchemy fun.max

this question has actually been mentioned before:
https://codeshelper.com/q/10...
, but I am not very familiar with the native syntax. I hope someone can translate it into the sqlalchemy syntax of python

. The

table structure is like this

id   time    status  ob_id
1     12:50    2    a1
2     12:53    3    b1
3     13:01    3    a1

requirements:
fetch the row where the maximum status of each ob_id is located
expected:

id   time    status  ob_id
3     13:01    3    a1
2     12:53    3    b1
May.18,2022
Menu