If you had a planet that was hollow in the center*, the entire hollow region would have zero gravity. You could have a thin-skinned planet with the entire interior an empty weightless void. I doubt any planets like this actually exist.
Assuming radial symmetry. If you can represent the planet as concentric spherical shells then you’re good.