Iterate over info axis.
Info axis as iterator.
Examples
>>> df = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6]}) >>> for x in df: ... print(x) A B