How old do babies have to be to swim?

I wanna take my baby to the pool. But I don't know how old she has to be