Answer the question
In order to leave comments, you need to log in
How to get max value from csv?
I am using pandas.
Here is part of the csv file: https://pastebin.com/UMbk8WRG
I found this way
df = pd.read_csv("путь к файлу")
def max_min_index(name_of_index):
max_value = df[name_of_index].idxmax()
return max_value
max_min_freedomhouse_score = max_min_index('freedomhouse_score')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question