In the image above, I have used groupby to arrange the dataset by its Genre. I want to extract the Genre in which maximum movies were released (as shown by the blue line in the image). How can I access the figure of 177 and print it out as output?
Asked
Active
Viewed 15 times
0
-
Use `df.loc['Comedy','Movie']` – jezrael Aug 17 '19 at 08:27
-
It is returning a KeyError 'Comedy'. – therion Aug 17 '19 at 08:31
-
What is `print (df.index.tolist())` ? – jezrael Aug 17 '19 at 08:32
-
Jezrael, I am sorry but I couldn't find the solution even in the suggestion you provided. – therion Aug 17 '19 at 08:37
-
What is `print (df.index.tolist())` ? – jezrael Aug 17 '19 at 08:39
-
print (df.index.tolist()) where are you reading this? – therion Aug 17 '19 at 08:43
-
Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/198073/discussion-between-jezrael-and-hammeroflight). – jezrael Aug 17 '19 at 08:44