Did you mean: limit (tan (x ),x ,pi /2 ,div ="-")?
limit (tan (x),x,pi /2,dir ="-")
Need more control? Try SymPy Live.