get first value in series pandas 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)