withought a clearer shot of the leaflets i cant be sure what sp it is. it looks like a succulent to me and the trunk looks like its been suffering for a long time. possibly in the yucca family. even though parts of the trunk look eaten or whatnot it could have a disease. try to take better pics. replanting was good and 1 solid watering using vitamin B so you can start your own watering schedule instead of guessing when it was previously watered. succulents like a good drenching then almost a complete dry out. they can go a while completely dry if healthy but yours looks like it needs a boost. if the tree is cut anywhere, or has rotting theres a few root hormone or tar products you can buy to stop a tree or plant from bleeding. its like an open wound to a person. must be cleaned and covered so air and other cant get in. please try to take close up pics of the leaves so i can try to properly identify.
some succulents in nature are meant to grow upward until the weight pulls them to the ground. once on the ground, the roots start to grow along the trunk to support the size of the plant. alot of people dont understand this and keep uprooting the plant to stand it upright wich is not good for the plant. done enough times ive seen agave atinuata and a few other rot on the sides. im not the best writer so excuse me if i jump around alot.
more pics please




This whole thing was awesome! Biggles, you're too funny sometimes...
I assume you were given the name of the plant when you bought it, no? Do your research boy. Without knowing more about the plant itself, odds are we can't help you very much. It may be that you just took home a sick plant that just didn't show until now. Who knows without more information? A name at the very least would be immense help...
some succulents in nature are meant to grow upward until the weight pulls them to the ground. once on the ground, the roots start to grow along the trunk to support the size of the plant. alot of people dont understand this and keep uprooting the plant to stand it upright wich is not good for the plant. done enough times ive seen agave atinuata and a few other rot on the sides. im not the best writer so excuse me if i jump around alot.

Correction; the window is facing eastwindow facing west.