Exporting tables from Adobe InDesign to an EPUB file is relatively simple, though it requires a few steps to do it successfully. Here are the steps you need to take:
Open Adobe InDesign and make sure that your table is complete with all its elements (text, images, etc.)
Go to the 'File' tab and click 'Export...'
Make sure 'EPUB' is selected from the file type options on the Export window
Under 'EPUB Options', select 'Table of Contents' or 'In-line TOC', depending on the kind of table you have
Click 'Export'
A pop up window will appear, where you will enter your file name and where to save the file
Once the export process is complete, a new EPUB file will be created that contains all the elements of your table.
For more detailed instructions and tips, please refer to this Adobe guide: https://helpx.adobe.com/in/indesign/using/exporting-for-digital-publishing.html#export_tables_or_lists_in_an_epub_file. It contains comprehensive information on how to make sure that your tables look great when converted to an EPUB file.