i am the newone with pandas, can i loops 2 column by position 1 and 3 in pandas dataframe below
import pandas as pd
inp = [("tokyo",8,7),("new york",6,8),("sydney",4,7),("london",12,7)]
df = pd.DataFrame(data=inp,columns=["a","b","d"])
print(df)
the result will bee like this
tokyo
7
new york
8
london
7
Thanks you for your help!