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
Another way -
Suppose myResult is the dataFrame that contains your data in the form of 1 col and 23 rows
// label your columns by passing a list of names
myResult.columns = ['firstCol']
// fetch the column in this way, which will return you a series
myResult = myResult['firstCol']
print(type(myResult))
In similar fashion, you can get series from Dataframe with multiple columns.