Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python pandas first and last element of column

>>> df['date'][df.index[0]]
10
>>> df['date'][df.index[-1]]
58
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Python #pandas #element #column
ADD COMMENT
Topic
Name
5+6 =