Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas dataframe select last n columns

y = dataframe[dataframe.columns[-3:]]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #dataframe #select #columns
ADD COMMENT
Topic
Name
7+8 =