project=pd.read_csv("train.csv",sep=',')
this dataset train.csv
has 200column, named as var_0,var_1 ....... var_199
for i in range(200):
c= "var_" + str(i)
the above line is for creating variable names using loop
#print(c)
b= project.c.describe()
AttributeError Traceback (most recent call last)
<ipython-input-46-b90b661d528b> in <module>
2 c= "var_" + str(i)
3 #print(c)
----> 4 b= project.c.describe()
~/anaconda3/lib/python3.7/site-packages/pandas/core/generic.py in __getattr__(self, name)
5177 if self._info_axis._can_hold_identifiers_and_holds_name(name):
5178 return self[name]
-> 5179 return object.__getattribute__(self, name)
5180
5181 def __setattr__(self, name, value):
AttributeError: 'DataFrame' object has no attribute 'c'
c
in for, not attribute for df.... $\endgroup$ – quester Oct 26 at 20:39