DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+2 =
Submit