Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
 
PREVIOUS NEXT
Tagged: #pandas #series #select
ADD COMMENT
Topic
Name
9+4 =