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
Post a Comment