python - Pandas concatenate all elements of dataframe into single series -


there must simple answer this, reason can't find it. apologies if duplicate question.

i have dataframe shape on order of (1000,100). want concatenate items in dataframe single series (or list). order doesn't matter (so doesn't matter axis concatenate along). don't want/need keep column names or indices. dropping nans , duplicates ok not required.

what's easiest way this?

this yield 1-dim numpy-array of lowest-common dtype elements.

df.values.ravel() 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -