On the ArcGIS Pro documentation page Table—ArcPy | ArcGIS for Desktop
the sample code near the bottom contains 2 issues
1/
If you simply copy and paste this line of code to create a table object
addTab = arcpy.mp.Table(r"C:\Projects\YosemiteNP\Data_Vector\YosemiteData.gdb\NHDFCode")
and just run it in a script tool, but that file does not exist, Pro will become unresponsive enough to make you to force close the application.
2/
This code following above
m.addTableView(addTab)
does not work. The method in in Pro arcpy.mp is addTable(), not addTableView().
PS This is not a question but seems like question-discussion posts gets more attention.