scipy.special.
lqmn
Associated Legendre functions of the second kind, Qmn(z) and its derivative, Qmn'(z) of order m and degree n. Returns two arrays of size (m+1, n+1) containing Qmn(z) and Qmn'(z) for all orders from 0..m and degrees from 0..n.
Qmn'(z)
(m+1, n+1)
Qmn(z)
0..m
0..n
z can be complex.