Fuel pump is INSIDE the gastank.
Some vehicles have an "Access port" so you can replace the pump without removing the tank. On other vehicles, it is tough, but you can reach around the tank from below to R&R the pump
In any case, the tank should be as empty as you can get it before starting the process.
Source: personal experience