DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Combine first and last 3 columns into new dataframe
response_gradYear
=
pd
.
concat
(
[
Education
.
iloc
[
:
,
:
3
]
,
Education
.
iloc
[
:
,
-
4
:
-
1
]
]
,
axis
=
1
)
PREVIOUS
NEXT
Tagged:
#Combine
#columns
#dataframe
ADD COMMENT
Topic
COMMENT
Name
2+9 =
Submit