3

I have a dataframe in python. When i print the dataframe, I get this -

audspec_lengthL1norm_sma_range ... mfcc_sma_de[14]_stddevFallingSlope file start end ...
/home/sandeep/Documents/trials/au... 0 days 0 days 00:00:00.500000 0.181606 ... 25.396582

[1 rows x 6373 columns]

since it is a single row dataframe, I want to extract that row of dimension 6373 and put it in a list. Please suggest how to do this

1 Answer 1

6

You can just extract your row (as Series) and convert it tolist.

df.iloc[0].tolist()
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.