Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas how to get last index

#using iget() function
df['column'].iget(-1)

#using index
df['date'][df.index[-1]]

#using iloc
df["date"].iloc[-1]
 
PREVIOUS NEXT
Tagged: #pandas #index
ADD COMMENT
Topic
Name
6+5 =