Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas series to numpy array

ser = pd.Series(pd.Categorical(['a', 'b', 'a']))
>>> ser.to_numpy()
array(['a', 'b', 'a'], dtype=object)
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #pandas #series #numpy #array
ADD COMMENT
Topic
Name
1+5 =