DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
pandas select column by index
# A B C # 0 1 3 5 # 1 2 4 6 column_B = a_dataframe.iloc[:, 1] print(column_B) # OUTPUT # 0 3 # 1 4
Source by www.kite.com #
PREVIOUS
NEXT
Tagged:
#pandas
#select
#column
#index
ADD COMMENT
Topic
COMMENT
Name
7+6 =
Submit