Skip to content
Advertisement

How to get a specific value from a pivot table – python

How do I get a specific value from a pivot table? I need to store “imdb_score” as a int in a variable. how can I do this?

this is the the contents of the table:

JavaScript

Advertisement

Answer

set the index to the unique column you have in dataframe which you want to use to filter.

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement