Get the Parent Path for a Prim Path

If you want have a Prim path and you want to get the Prim path of its parent, you can use Sdf.Path.GetParentPath().

USD API

from pxr import Sdf

parent_path = my_prim_path.GetParentPath()

# Given Sdf.Path('/World/Cone') for my_prim_path, parent_path will contain Sdf.Path('/World')