extract element from data frame python panda code example Example: df fetch value val = d2['col_name'].values[0]