Although
@Peter Simpson hit the nail on the head, your code is very close. All you needed to do in your statement is add DESC to the query as shown below. There are different ways to skin a cat. Also, avoid naming a table Table because it is a reserved word:
query = "SELECT Sample as Mode FROM Table1 GROUP BY 1 ORDER BY COUNT(1) DESC LIMIT 1"