how to get the first value from pandas series code example
Example: pandas series select first value
df = pd.DataFrame([[1, 2], [3, 4]], ['a', 'b'], ['A', 'B'])
df['A'].iloc[0] # first item in a Series (Column)
df = pd.DataFrame([[1, 2], [3, 4]], ['a', 'b'], ['A', 'B'])
df['A'].iloc[0] # first item in a Series (Column)