I’m a bit out of my element asking math questions here, but hopeful someone can point me in the right direction. Thanks in advance!
Questions:
Do the two tables illustrated below each form a shape in math-topology? I’m thinking they both form a torus shape; some sort of “lumpy-torus” shape?
How would one go about graphically visualizing these table-shapes? Can anyone provide a little direction to a specific software/tool that would allow me to create a computer visual?

To reach something like what you're talking about, the most straightforward interpretation I can think of is to proceed along the following steps:
In that case, the result is a cylinder, not a torus. Ideally one would like to draw the original $\mathbb Z^2$ grid on this cylinder; I'm not aware of software that would do that. You could do it on actual paper, though; cut, rolled into a tube, and glued back together.