Implementing custom trendlines similiar to graphing.py

CodeArtificial 1 Reputation point
2022-01-09T02:02:51.56+00:00

I am currently doing the exercise named "Exercise - Implement supervised learning" in the learning path "Build classical machine learning models with supervised learning" in Microsoft Learn and encountered the name graphing.py uploaded by the people of Microsoft Learn.

I was not able to use the graphing.py's function, that is, scatter_2D. Two errors appeared,

  1. AttributeError: 'NoneType' object has no attribute 'index'
  2. KeyError: None

Is there any other way i can draw a custom trendline (that is a function) onto another notebook that is not Microsoft Learn Sandbox? Thank you in advance.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,072 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.