The purpose of the National Electric Code restrictions on the location of a panelboard is the safety of a person opening the panel for service. To safely remove the dead front (cover plate of the panel) and work inside requires a stable surface to stand on and sufficient elbow room to move around and work in front it. Standing on the steps of a stairs is not acceptable [NEC 240.24 (F)]. We occasionally see an electric panel at the side of a stair run, like in the photo below of stairs to a basement, and call it out for relocation. Also, the diagram below at right shows the clearance requirements in front of the panel: 2’6” wide, 3’-0” deep, and 6’-6” high.