I\'m somewhat new to pandas. I have a pandas data frame that is 1 row by 23 columns.
I want to convert this into a series? I\'m wondering what the most pythonic way
You can also use stack()
df= DataFrame([list(range(5))], columns = [“a{}”.format(I) for I in range(5)])
After u run df, then run:
df.stack()
You obtain your dataframe in series