DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
multiple args for pandas apply
df
[
"col_added"
]
=
df
.
apply
(
lambda
x
:
add_a_b
(
x
[
"col_1"
]
,
x
[
"col_2"
]
)
,
axis
=
1
)
Source by www.kite.com #
PREVIOUS
NEXT
Tagged:
#multiple
#args
#pandas
#apply
ADD COMMENT
Topic
COMMENT
Name
5+1 =
Submit