Can we got column name from dataframe when the data not matched? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can we got column name from dataframe when the data not matched?

Can we got the column name from dataframe in python, so when we cannot find the value in there. we can look other column which not relevant with our criteria? can we find this library in python? may some one give me a clue?

29th Mar 2018, 1:57 PM
Wandy
Wandy - avatar
3 Answers
+ 1
by print Dataframe.columns you can get column names.
20th May 2018, 8:27 AM
$ยข๐Žโ‚น๐”ญ!๐จ๐“
$ยข๐Žโ‚น๐”ญ!๐จ๐“ - avatar
0
you can print whole data frame for finding relevant column
20th May 2018, 8:28 AM
$ยข๐Žโ‚น๐”ญ!๐จ๐“
$ยข๐Žโ‚น๐”ญ!๐จ๐“ - avatar
0
thank you
13th Jun 2018, 12:32 AM
Wandy
Wandy - avatar