DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
create multi new column from apply pandas
df[['square x', 'cube x']] = df['col x'].apply(f)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#create
#multi
#column
#apply
#pandas
ADD COMMENT
Topic
COMMENT
Name
6+9 =
Submit