These commands:
import pandas
import numpy
data = pandas.read_csv("nesarc_pds.csv", low_memory=False)
print(len(data))
print(len(data.columns))
Produced the following response:
In [2]: print(len(data.columns))
Traceback (most recent call last):
File "
print(len(data.columns))
NameError: name 'data' is not defined
PASTE TRACEBACK HERE
PASTE DEPENDENCIES HERE
Hi @MMS413 how did you run your code? Seems like you are running it line by line (in which case you need to run the previous lines too in order to execute correctly that line or at least have in the namespace of your console the variable data
).
For a full file run you can use the F5
shortcut or clicking the in the toolbar.
Hope the little explanation above helps :)
Thanks, @dalthviz !
Where you able to run your code @MMS413 ?
Yes, thank you @dalthviz
Awesome closing this one then :+1:
Most helpful comment
Yes, thank you @dalthviz