Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas dataframe to series

df.squeeze() # converts to series
# OR
# When loading a file
pd.read_csv("df.csv", index_col="col1", squeeze=True) 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #dataframe #series
ADD COMMENT
Topic
Name
5+4 =