Add specifications table for products page

You could easily do that with Product Specifications plugin.
This plugin is built for this purpose and you won’t need any additional code, However it comes with a [specs-table] shortcode that you can use elsewhere.

The plugin automatically adds a tab called “product specifications” to woocommerce single product page and shows product spec. table,
Read more at plugin’s page on wordpress.org