Heat the oven to 350°F (175°C).
Line cake pans with parchment paper.
Mix flour, pistachios, baking powder, soda, and salt.
In another bowl, beat butter and sugar until smooth.
Add eggs one by one. Mix after each.
Add vanilla, milk, and yogurt. Mix well.
Slowly add dry mix into the wet mix.
Don’t mix too much—just until combined.
Pour the batter into the two pans evenly.
Bake for 25–30 minutes, until golden and firm.
Check with a toothpick—it should come out clean.
Cool cakes in pans for 10 minutes.
Then move to a rack to cool fully.
Add frosting or serve the cake plain.
Sprinkle chopped pistachios on top if you like.