If your data are in Anvil’s DataTables, you would have to iterate through the table in a loop and place the data into a numpy array or Pandas DataFrame.
Please check out the docs on DataTables to see how to iterate through them if you have not already.