I am using geopanda with python. I would like to select the row with the maximum value of column "pop".
I am trying the solution given here Find maximum value of a column and return the corresponding row values using Pandas :
city_join.loc[city_join['pop'].idxmax()]
However, it does not work. It says "TypeError: reduction operation 'argmax' not allowed for this dtype" . I think the reason is because that solution works for panda and not for geopandas. Am I right? How can I select the row with the maximun value of column "pop" in a geopanda dataframe?