Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

column type pandas as numpy array

df['col1'] = df['col1'].apply(lambda x: np.array(x))

type(df['col1'].iloc[0])
numpy.ndarray
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #column #type #pandas #numpy #array
ADD COMMENT
Topic
Name
9+5 =