Agree. Do you have a pic of it when it when the tall part had leaves? It could be Yucca, I thought about that, but it just gives me more of a Cordyline vibe, as a first suggestion for comparison. It will do OK with less light than Yucca, and more likely to be encountered as a single-trunk houseplant.
Pics of the Yucca that is sold as a houseplant for additional comparison:
Spineless Yucca (Yucca gigantea)
Is the window in the last set of pics the only source of light?