Variation of pressure with Depth in a fluid

We know that in an statics fluid pressure in horizontal direction will be constant because  of equi-pressure surface but in case of vertical Variation it’s Vary .If the weight of the fluid can be neglected, the pressure in a fluid is the same throughout its volume. But often the fluid’s weight is not negligible and under such condition pressure increases with increasing depth below the surface .
dp/dy = ρg . ( This is the general expression  of variation of pressure with depth  ) .