An electric drive axle in a vehicle is provided. The electric drive axle includes, in one example, a housing configured to enclose an electric motor-generator and a gearbox. In the electric drive axle, the housing includes a first section that is removably coupled to a second section, the second section at least partially encloses the gearbox, the first section includes a first axle shaft opening, and the second section includes a second axle shaft opening that is laterally aligned with the first axle shaft opening.