isdsucph / isds2021

Introduction to Social Data Science 2021 - a summer school course https://isdsucph.github.io/isds2021/
MIT License
22 stars 37 forks source link

Inspection #6

Closed Casper17-max closed 3 years ago

Casper17-max commented 3 years ago

image

I think I copied this exact from the assignment, I don't know why 'dp' is not defined.

joachimkrasmussen commented 3 years ago

Hi Casper,

Did you remember first to run: import pandas as pd?

Best, Joachim

Casper17-max commented 3 years ago

I tried to google what this new error mean, but none of the suggested solutions worked for me: image

joachimkrasmussen commented 3 years ago

Try and do the following: Click: Kernel -> 'restart and clear output'

Then add the following to the top of the cell: import numpy as np

Then run this cell and only this cell. Does it work now?

Note: When you restart the kernel and clear the output, all your outputs will disappear, and you will have to run everything again to get your output. This should not be a problem if you have written your code properly!

/Joachim

Casper17-max commented 3 years ago

It worked, thank you