Draw trend line from two points with python

  graph, python

Hi everyone I have a problem with creating graphs with Python.
I would like that with previously obtained numerical values, python first finds the highest value of all, then a second value greater than the others but which has at least one lower point before it. Having found these two values, I would like to draw a trend line that passes through these two values.
Anyone have an idea of how to do it? I can only find examples for linear regressions which however work on averaging models between values.
thanks a lot to everyone

Source: Python Questions

LEAVE A COMMENT