You asked
Is the panasonic lumix g 42 5mm f 1 7 good for portraits?
Here is what the site says about that.
From Panasonic Lumix G 42.5mm f/1.7: Panasonic Lumix G 42.5mm f/1.7: A prime lens by Panasonic for Micro Four Thirds cameras, 42mm f/1.7. Specs - Maker: Panasonic - Focal length: 42mm (prime) - Maximum aperture: f/1.7 - Made for: Micro Four Thirds sensors - Mounts: Micro Four Thirds - Stabilised: yes - Autofocus: yes What it frames like - On Micro Four Thirds (Micro Four Thirds): like 85mm on full frame; f/1.7 gives about the depth of field of f/3.4 there. ...
From Portraits: Portraits: For portraits, the lens matters far more than the camera. A cheap body with a good portrait lens beats an expensive body with a kit zoom every time.
Quoted from this site's pages.