'Best function to use for Interpolation of tan function in Scipy

I have a set of data that is very similar to a tan function. I'm trying to use Scipy to interpolate value to use as a line of best fit to estimate values

Thanks



Sources

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

Source: Stack Overflow

Solution Source