How to scroll to the bottom of table using appium python

How to scroll to the bottom
Of table i am using python and appium. When there is nothing unique in the table row.
I tried to compare the elementId property of the last element after each scroll but the problem that elemetId changes every time. Is there a way you know to scroll to the bottom of the table?
Maybe there is a way to see the entire xml including the elements that do not appear or other solution? i thought about ask for developer to put hidden id at the end of every table so that will be easy to scroll until the the i get the invisible id