get first element from column pandas code example
Example 1: pandas return first row
df_test.iloc[0]
or
df_test['someColumnName'].iloc[0]
Example 2: get only first 10 columns pandas
df.iloc[:, : 50]
df_test.iloc[0]
or
df_test['someColumnName'].iloc[0]
df.iloc[:, : 50]