I was getting the same error. I had %%timeit and then import pandas as pd. When I deleted %%timeit, the pandas worked