How to convert a single column Pandas DataFrame into Series
s = df.squeeze()
>>> s
gene
foo 4
bar 3
Name: score, dtype: float64
To get it back to a dataframe:
>>> s.to_frame()
score
gene
foo 4
bar 3
Try swapping the indices in the brackets:
df.iloc[:,0]
This should work.