'Plugging a known z/t - test value to get a p-value

I'm looking for a way to plug a precalculated/known t/z-test value into python and get a p-value back. I know you can use scipy.stats.ttest_ind/oneway/etc to calculate p-values, but those functions all seem to require inputting the data set and I can't find anything in the documentation to allow just plugging in the z-value. How can I do that?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source