Drawing curve like Tradingview Curve Tool with Python

So sorry for the mistakes I made while speaking English.

I want to drawing a curve in pandas dataframe but curve should be like Tradingview “curve tool” or “double curve tool” with Python. I will make an algortihmic trade program but i cant because this reason.

18f7be37532097a51e0cde596f11c7450770b8a4

from matplotlib import pyplot as plt
import numpy as np, pandas as pd

curve_df = pd.DataFrame.from_dict({"Date":[i for i in range(-10, 10)], "Curve":np.nan})

points = [[1,3], [0, 2], [1, 3]] #random coordinates but will be not random coordinates

#here is codes for making curve with points

plt.plot(df["Curve"], label="Curve")
plt.show()

Thanks in advance…

Solution:

https://bezier.readthedocs.io/en/stable/python/reference/bezier.curve.html