Reputation: 345
My code is as below:
Col_list=['A','B','C']
for col in col_list:
df.col.describe()
My intention above is to iterate through a list few column names which are also present in the DF and then get describe() method work. What can I try next?
Upvotes: 0
Views: 33
Reputation: 112
Try this:
Col_list=['A','B','C']
for col in col_list:
df[col].describe()
Upvotes: 1