Skip to content
Advertisement

Code not working in Jupyter Notebook, csv file, name error

The following code was working fine yesterday and now it only runs occasionally and gives the ‘name not defined error for kameradata’. I am a novice and dont know if its jupyter or my code. I have tried restarting the kernel but it still isnt running as it did yesterday.

JavaScript

The csv file looks like this: `

JavaScript

I want to use the function to print the first 3 rows as follows:

JavaScript

Advertisement

Answer

You’ve put return statement before loop and loop should be inside “with”. Try this code

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement