DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to get row number in dataframe in pandas?
>>> df[df['LastName'] == 'Smith'].index Int64Index([1], dtype='int64')
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#row
#number
#dataframe
ADD COMMENT
Topic
COMMENT
Name
8+6 =
Submit