DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Data type based on rows
df['datatype'] = df['column'].apply(lambda x: 'int' if type(x) == int else 'str')
PREVIOUS
NEXT
Tagged:
#Data
#type
#based
#rows
ADD COMMENT
Topic
COMMENT
Name
6+2 =
Submit