How to get cosine in jupyter notebook?
You don't have to import numpy or pandas (which as far as I am aware doesn't implement any general-purpose cosine function) to calculate cosine. You can import math and then use math.cos().
I'm currently working in jupyter notebook, and I am getting the error that cos is not defined, I imported pandas and numpy. Is there any other library I am missing?