DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
find index corresponding to maximum value pandas
my_max_ind
=
data
[
'x1'
]
.
idxmax
(
)
# Index of maximum in column
print
(
my_max_ind
)
# 4
Source by statisticsglobe.com #
PREVIOUS
NEXT
Tagged:
#find
#index
#maximum
#pandas
ADD COMMENT
Topic
COMMENT
Name
4+5 =
Submit