You can use the to_csv function on the subset of df.
to_csv
df
df.iloc[2].to_csv('path/myfile.csv')
2.1m questions
2.1m answers
60 comments
57.0k users