You asked
Panasonic leica dg 25mm f 1 4 ii vs yongnuo yn25mm f 1 7m?
Panasonic Leica DG 25mm f/1.4 II or Yongnuo YN25mm f/1.7M: for dim light and people, the Panasonic is the better lens. Both are 25mm primes for Micro Four Thirds cameras, both autofocus, and neither has stabilisation. Both frame like a 50mm lens on full frame.
The difference is aperture. The Panasonic's f/1.4 gives about the depth of field of f/2.8 on Micro Four Thirds, while the Yongnuo's f/1.7 gives about f/3.4. The gap is under a third of a stop, but it is visible in practice: the Panasonic separates a sharp face from the background more easily, and it gathers more light indoors. That matters for portraits, where at f/1.4 the depth of field can be thinner than a face, so you'll need to stop down for two people at different distances.
The Yongnuo gives up that bit of light and blur for a lower-cost lens that still gives a useful standard view. Its brighter-than-kit aperture still helps indoors, so it's a sensible choice if you mostly shoot in good light or can work with the extra depth of field.
Both fit the same camera bodies, so the choice is about the lens, not the body. For a first fast prime, the lenses guide suggests pairing it with a standard zoom. This answer doesn't quote a price for either lens, so check each lens page's price section for current figures.
Written by Claude from this site's pages.
From these pages
This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.