pandas series select first value

Solutions on MaxInterview for pandas series select first value by the best coders in the world

showing results for - "pandas series select first value"
Gunnar
08 Jan 2017
1df = pd.DataFrame([[1, 2], [3, 4]], ['a', 'b'], ['A', 'B'])
2df['A'].iloc[0]  # first item in a Series (Column)