1#Please check if any of your values being passed in are NaN or inf:2np.isnan(x).any()
3np.isnan(y).any()
45np.isinf(x).any()
6np.isinf(y).any()
78#If any of those yields true. Remove the nan entries or inf entries.
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content