Q:

Store nth row elements in a list panda dataframe

I am new to python.Could you help on follow
I have a dataframe as follows.
a,d,f & g are column names. dataframe can be named as df1
a   d   f   g
20  30  20  20
0   1   NaN NaN

I need to put second row of the df1 into a list without NaN's.
Ideally as follows.
x=[0,1]

A:

Select the second row using df.iloc[1] then using .dropna remove the nan values, finally using .tolist method convert the series into python list. 
Use:
x = df.iloc[1].dropna().astype(int).tolist()  
# x = [0, 1]

